2012-02-16 14:09:38 +00:00
|
|
|
#!/bin/rc
|
2012-03-03 17:06:40 +00:00
|
|
|
rfork n
|
|
|
|
cd /
|
|
|
|
if(! test -d .hg)
|
|
|
|
bind -ac /dist/plan9front /
|
2012-05-26 19:50:10 +00:00
|
|
|
while(! ~ $#* 0){
|
|
|
|
switch($1){
|
|
|
|
case -i
|
|
|
|
hg incoming
|
|
|
|
case *
|
|
|
|
echo usage: sysupdate [-i] >[1=2]
|
|
|
|
exit usage
|
|
|
|
}
|
|
|
|
shift
|
|
|
|
}
|
2012-04-16 13:57:40 +00:00
|
|
|
hg -v pull -u
|