shithub: riscv

ref: 0feb6e06af1e48c2b1a937c6a593fceeafd728d2
dir: /rc/bin/sysupdate/

View raw version
#!/bin/rc
rfork n
cd /
if(! test -d .hg)
	bind -ac /dist/plan9front /
while(! ~ $#* 0){
	switch($1){
	case -i
		hg incoming
	case *
		echo usage: sysupdate [-i] >[1=2]
		exit usage
	}
	shift
}
hg -v pull -u