Adding a way to ignore hg incoming on sysupdate.
This commit is contained in:
parent
95d7fa1c0e
commit
e20bac0e98
1 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,24 @@
|
|||
#!/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 /
|
||||
hg incoming && hg -v pull -u
|
||||
|
||||
if(~ $incoming 1)
|
||||
hg incoming
|
||||
hg -v pull -u
|
||||
|
||||
|
|
Loading…
Reference in a new issue