#!/bin/rc rfork e if(! ~ $#* 0){ echo 'usage: patch/pull' >[1=2] exit usage } . /rc/bin/patch/defs mountfs test -e /n/dist/386 || bind /root /n/dist || fail no dist {touch /n/dist/lib/XXX && rm -f /n/dist/lib/XXX } >[2]/dev/null|| fail no permission to write /n/dist echo '#pipe the following through rc to update' # this must go after some time... if(! up -t /dev/null /dev/null >[2]/dev/null){ echo 'pullbin requires a newer version of up(1) that is not here.'>[1=2] exit fail } up -t $SD/386/bin /n/dist/386/bin | grep -v '^rm ' up -t $SD/386/lib /n/dist/386/lib | grep -v '^rm ' exit ''