code: 9ferno

ref: e81c54ba2ecc673a4d5f8aed0e9b52841fe07b0d
dir: /os/port/mkfile/

View raw version
# If the existence of this mkfile screws something up, rename it.	-rsc

master:DV:
	{
	echo '# do not edit; automatically generated'
	echo
	echo '
		X , s/Dev (.*)devtab.*{.*\n	L?''(.*)''/DEV \1 \2\n/
		X ,x g/^DEV/ p
	' | sam -d ../*/dev*.c >[2]/dev/null |
	awk '/^DEV/ { printf("%s\t%s\n", $3, $2); }' |
	sort -u
	echo
	cat master.local
	} >master