X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=rc%2Fbin%2Fsysupdate;h=e0420b50fe4e6a308aa962d4d24a9eb4b2a8f937;hb=72868594c7922a2b232fb8876cac3f25a4f76398;hp=0f2648ef9101f6236eb60c085e1438c06375ae06;hpb=e3e394b4d60c3ce5b1db89b0d9dbcf009de198e9;p=plan9front.git diff --git a/rc/bin/sysupdate b/rc/bin/sysupdate index 0f2648ef9..e0420b50f 100755 --- a/rc/bin/sysupdate +++ b/rc/bin/sysupdate @@ -1,5 +1,17 @@ #!/bin/rc - -bind -ac /dist/plan9front / -hg incoming -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