diff options
| author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-04-17 00:07:50 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-04-17 00:07:50 +0200 |
| commit | c785315d64b0cb4ec5b36995de4034c31173297d (patch) | |
| tree | 3c3fb6cf5179efdfdd9e8b36f0c9272fa1e836ff | |
| parent | 1f0ea6cd9671bb1078d0c302f777b34961f76eb0 (diff) | |
| parent | e20bac0e9812d9f36ce482332e57118d54cc803c (diff) | |
| download | plan9front-c785315d64b0cb4ec5b36995de4034c31173297d.tar.xz | |
merge
| -rwxr-xr-x | rc/bin/sysupdate | 20 |
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 + |
