plan9fox/rc/bin/sysupdate
2012-04-16 15:57:40 +02:00

24 lines
234 B
Bash
Executable file

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