shithub: rc

ref: 03baa934bacdbf48e9e8e94711e6687e6bb1fb30
dir: /bin/mkall/

View raw version
#!/bin/rc -e
clean=1
if(~ $1 -n){
	clean=()
	shift
}
for(i in amd64 386 arm){
	objtype=$i {
		if(! ~ $#* 0)
			mk $*^.install
		if not{
			mk nuke
			mk install
		}
		if(! ~ $#clean 0){
			if(! ~ $#* 0)
				mk cleancmds >[2]/dev/null || mk $*^.clean
			if not
				mk clean
		}
	}
}