2019-03-05 03:43:53 +03:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
cp -r $PIER ./pier
|
|
|
|
chmod -R u+rw ./pier
|
2019-03-05 03:43:53 +03:00
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
$URBIT -d ./pier
|
2019-03-05 03:43:53 +03:00
|
|
|
|
|
|
|
cleanup () {
|
2019-05-02 23:13:48 +03:00
|
|
|
if [ -e ./pier/.vere.lock ]
|
|
|
|
then kill $(< ./pier/.vere.lock) || true;
|
2019-03-05 03:43:53 +03:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
trap cleanup EXIT
|
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
herb ./pier -P solid.pill -d '+solid, =dub &'
|
2019-03-05 03:43:53 +03:00
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
mv solid.pill $out
|
2019-03-05 03:43:53 +03:00
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
set +x
|