summaryrefslogtreecommitdiff
path: root/rc/bin/sysupdate
blob: de08d28a2683326b1be1bec2baa9100ae66cbeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/rc
rfork en

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