ref: 66f769d35b32f265ef63d914f209000f5879c763
dir: /pub/files/9front/rc/mkonemk/
#!/bin/rc if(~ $1 ''){ name=`{basename `{pwd}} } if not{ name=$1 } echo '#include <u.h> #include <libc.h> void main(int argc, char **argv) { }' > $name.c echo '</$objtype/mkfile TARG='$name' OFILES='$name'.$O </sys/src/cmd/mkone' > mkfile