front
cinap_lenrek 2012-04-17 00:07:50 +02:00
commit c785315d64
1 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,24 @@
#!/bin/rc #!/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 rfork n
cd / cd /
if(! test -d .hg) if(! test -d .hg)
bind -ac /dist/plan9front / bind -ac /dist/plan9front /
hg incoming && hg -v pull -u
if(~ $incoming 1)
hg incoming
hg -v pull -u