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