X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=rc%2Fbin%2Fsysupdate;h=e0420b50fe4e6a308aa962d4d24a9eb4b2a8f937;hb=7d1b9e39f7b1dac4c2ed6e3771585548ccd9e2d4;hp=6d01ed0cc6281b37fa7f9f5f16812fd22ff201ca;hpb=5e6145b47e69c025f33efa7efbbc932e68d164e8;p=plan9front.git diff --git a/rc/bin/sysupdate b/rc/bin/sysupdate index 6d01ed0cc..e0420b50f 100755 --- a/rc/bin/sysupdate +++ b/rc/bin/sysupdate @@ -1,4 +1,17 @@ #!/bin/rc - -bind -ac /dist/plan9front / -hg pull && hg update +rfork en +source=https://code.9front.org/hg/plan9front +cd / +if(! test -d .hg) + bind -ac /dist/plan9front / +while(! ~ $#* 0){ + switch($1){ + case -i + hg incoming $source + case * + echo usage: sysupdate '[-i]' >[1=2] + exit usage + } + shift +} +hg -v pull -u $source