git: 9front

Download patch

ref: 9e6ebfbb5631b47b6b5a6fcb939ecb5c48828937
parent: 64dd8f4356d70b24c11baf04d2c15c5b324a831f
parent: 7384fedab3442439dd01e7ca33b50db9c9a7f4b4
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Apr 16 20:07:50 EDT 2012

merge

--- 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
+
--