plan9fox/rc/bin/sysupdate

25 lines
234 B
Plaintext
Raw Normal View History

2012-02-16 14:09:38 +00:00
#!/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