summaryrefslogtreecommitdiff
path: root/rc/bin/sysupdate
blob: 7f95f7c10f41937d92f29b1cb9a2e9307292686e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/rc

rfork n
cd /

incoming=1

switch($1){
case -h
	echo usage: sysupdate [-i] >[1=2]
	exit usage
case -i
	incoming=0
}

rfork n
cd /
if(! test -d .hg)
	bind -ac /dist/plan9front /

if(~ $incoming 1)
	hg incoming
hg -v pull -u