plan9fox/rc/bin/sysupdate
2015-08-25 02:07:46 -07:00

17 lines
227 B
Bash
Executable file

#!/bin/rc
rfork en
cd /
if(! test -d .hg)
bind -ac /dist/plan9front /
while(! ~ $#* 0){
switch($1){
case -i
hg incoming $source
case *
echo usage: sysupdate '[-i]' >[1=2]
exit usage
}
shift
}
hg -v pull -u $source