ref: 7c063c346a361bca2e57e26e04e8fb48a05c8c7e
dir: /bin/mkall/
#!/bin/rc -e rfork n clean=1 install=1 while(~ $1 -?){ switch($1){ case -u clean=() shift case -n install=() clean=() shift case * usage } } for(i in amd64 386 arm){ objtype=$i { if(! ~ $#* 0){ if(! ~ $#install 0) mk $*^.install if not mk $* } if not{ mk nuke if(! ~ $#install 0) mk install if not mk } if(! ~ $#clean 0){ if(! ~ $#* 0) mk cleancmds >[2]/dev/null || mk $*^.clean if not mk clean } } }