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-07-04 02:02:30 +03:00
|
|
|
# update pill strategy to ensure correct staging
|
|
|
|
#
|
|
|
|
herb ./pier -p hood -d "+hood/mount /=home="
|
|
|
|
|
2019-08-01 23:17:14 +03:00
|
|
|
until [ -d ./pier/home ]
|
|
|
|
do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
2019-08-06 02:34:17 +03:00
|
|
|
cp $ARVO/app/lens.hoon ./pier/home/app/
|
2019-07-04 02:02:30 +03:00
|
|
|
cp $ARVO/lib/pill.hoon ./pier/home/lib/
|
|
|
|
chmod -R u+rw ./pier/home/lib/
|
|
|
|
|
|
|
|
herb ./pier -p hood -d "+hood/commit %home"
|
|
|
|
herb ./pier -p hood -d "+hood/unmount %home"
|
|
|
|
|
|
|
|
# stage new desk for pill contents
|
|
|
|
#
|
2019-05-16 08:25:19 +03:00
|
|
|
herb ./pier -p hood -d '+hood/merge %stage our %home'
|
|
|
|
herb ./pier -p hood -d "+hood/mount /=stage="
|
|
|
|
|
2019-08-07 23:37:57 +03:00
|
|
|
until [ -d ./pier/stage ]
|
|
|
|
do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
2019-07-02 02:28:01 +03:00
|
|
|
rm -rf ./pier/stage
|
2019-05-16 08:25:19 +03:00
|
|
|
cp -r $ARVO ./pier/stage
|
2019-06-28 03:32:16 +03:00
|
|
|
chmod -R u+rw ./pier/stage
|
2019-05-16 08:25:19 +03:00
|
|
|
|
|
|
|
herb ./pier -p hood -d "+hood/commit %stage"
|
2019-07-04 02:02:30 +03:00
|
|
|
herb ./pier -p hood -d "+hood/unmount %stage"
|
2019-05-16 08:25:19 +03:00
|
|
|
|
|
|
|
herb ./pier -P solid.pill -d '+solid /=stage=/sys, =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
|