shithub: riscv

ref: 6540a9a21ae4f62f512f3e95063561d87e80701c
dir: /rc/bin/sysupdate/

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