shithub: riscv

Download patch

ref: c785315d64b0cb4ec5b36995de4034c31173297d
parent: 1f0ea6cd9671bb1078d0c302f777b34961f76eb0
parent: e20bac0e9812d9f36ce482332e57118d54cc803c
author: cinap_lenrek <[email protected]>
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
+