plan9fox/rc/bin/sysupdate
2012-05-26 21:50:10 +02:00

16 lines
207 B
Bash
Executable file

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