shithub: riscv

ref: 374d4ec2c154cbec0094f124f2173b685adbabd5
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