ref: 156d0b3f8f89cb2b8f5ea79304dc63c24b6d1cda
dir: /init/
#!/bin/rc -e rfork ne dir=$1 if(~ $#dir 0) dir=. if(test -e $dir/.pro){ echo $0: $dir/.pro already exists >[1=2] exit 'exists' } name=`{basename `{cleanname -d `{pwd} $dir}} mkdir -p $dir/.pro/task touch $dir/.pro/ns >$dir/.pro/config { echo '[project '$name']' echo ' srvname='$name echo ' stubs=' }