code: 9ferno

ref: 44ce0097b612a1fefd754065bdf8d9d2e5ef60c8
dir: /appl/cmd/mk/mksubdirs/

View raw version
all:V:	all-$SHELLTYPE
install:V: install-$SHELLTYPE
uninstall:V: uninstall-$SHELLTYPE
nuke:V: nuke-$SHELLTYPE
clean:V: clean-$SHELLTYPE

%-rc %-nt %-sh:QV:
	load std
	for j in $DIRS {
		if { ftest -d $j } {
			echo 'cd' $j '; mk' $MKFLAGS $stem
			cd $j; mk $MKFLAGS $stem; cd ..
		} {
			! ftest -e $j || raise $j^' not a directory'
		}
	}