shithub: riscv

ref: 74b37c286f84e36ad7f6e8e482fb2a2203b7f0ed
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