shithub: sirjofri_de

ref: e838f84c155c9a4aab4d59e22db257ec20c0b0e2
dir: /pub/files/9front/rc/mkmanymk/

View raw version
#!/bin/rc

fn stubfile{
	echo '#include <u.h>
#include <libc.h>

void
main(int argc, char **argv)
{
}' > $1.c	
}

if(~ $#* 0){
	names=`{basename `{pwd}}
}
if not{
	names=$*
}

for(i in $names)
	stubfile $i

echo '</$objtype/mkfile

TARG='^$"names^'

</sys/src/cmd/mkmany' > mkfile