File:  [Apple Darwin 0.x] / kernel / conf / compat_hdrs.awk
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:26:07 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, Darwin03, Darwin01
Darwin 0.1 Mach+BSD kernel

BEGIN {
	hdr =	"#warning Compatibility header file imported, use <%s/%s>\n" \
		"#import\t<%s/%s>\n"
}
/^#/ {		# skip comments in data file
	continue;
}
/COMPATMACHINE/ {
	ofile = sprintf("compat/%s/%s", $2, $3);
	printf("#import\t<machine/compat_%s>\n", $3) > ofile
	printf(hdr, $1, $3, $1, $3) > ofile;
	continue;
}
/DELETED/ {
	ofile = sprintf("compat/%s/%s", $2, $3);
	printf("#error This file has been removed\n") > ofile;
	continue;
}
{
	ofile = sprintf("compat/%s/%s", $2, $3);
	printf(hdr, $1, $NF, $1, $NF) > ofile;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.