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