shithub: riscv

ref: a170c952ffc4f2c60be5505f3a4a74f936a898b9
dir: /rc/bin/sysupdate/

View raw version
#!/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