2012-02-16 14:09:38 +00:00
|
|
|
#!/bin/rc
|
2015-06-06 22:11:47 +00:00
|
|
|
rfork en
|
2021-06-05 23:58:24 +00:00
|
|
|
source=https://code.9front.org/hg/plan9front
|
2021-06-05 12:17:03 +00:00
|
|
|
cd /
|
2021-06-05 23:58:24 +00:00
|
|
|
if(! test -d .hg)
|
2021-06-05 12:17:03 +00:00
|
|
|
bind -ac /dist/plan9front /
|
2021-06-05 23:58:24 +00:00
|
|
|
while(! ~ $#* 0){
|
|
|
|
switch($1){
|
|
|
|
case -i
|
|
|
|
hg incoming $source
|
|
|
|
case *
|
|
|
|
echo usage: sysupdate '[-i]' >[1=2]
|
|
|
|
exit usage
|
|
|
|
}
|
|
|
|
shift
|
|
|
|
}
|
|
|
|
hg -v pull -u $source
|