shithub: riscv

Download patch

ref: e20bac0e9812d9f36ce482332e57118d54cc803c
parent: 95d7fa1c0e54aff3d0405909f256c73b21665718
author: Christoph Lohmann <[email protected]>
date: Mon Apr 16 11:57:40 EDT 2012

Adding a way to ignore hg incoming on sysupdate.

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