summaryrefslogtreecommitdiff
path: root/rc/bin/sysupdate
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-04-16 15:57:40 +0200
committerChristoph Lohmann <20h@r-36.net>2012-04-16 15:57:40 +0200
commite20bac0e9812d9f36ce482332e57118d54cc803c (patch)
tree876756753bbcc0334ddcbf4887e7527bf3729ff5 /rc/bin/sysupdate
parent95d7fa1c0e54aff3d0405909f256c73b21665718 (diff)
downloadplan9front-e20bac0e9812d9f36ce482332e57118d54cc803c.tar.xz
Adding a way to ignore hg incoming on sysupdate.
Diffstat (limited to 'rc/bin/sysupdate')
-rwxr-xr-xrc/bin/sysupdate20
1 files changed, 19 insertions, 1 deletions
diff --git a/rc/bin/sysupdate b/rc/bin/sysupdate
index 2865bdd5d..7f95f7c10 100755
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -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
+