From e20bac0e9812d9f36ce482332e57118d54cc803c Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Mon, 16 Apr 2012 15:57:40 +0200 Subject: Adding a way to ignore hg incoming on sysupdate. --- rc/bin/sysupdate | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 + -- cgit v1.2.3