shithub: sirjofri_de

ref: ec4bf38b40ed9952e857292750d541c438a587b1
dir: /pub/files/9front/rc/mkonemk/

View raw version
#!/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