shithub: sirjofri_de

ref: 0d97a03e8219a7796eacd6ba1a67d927db4f712e
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