File:  [Apple XNU] / XNU / bsd / conf / compat_hdrs.awk
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:44:41 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: v68_4-1_1, HEAD
xnu-68.4-1.1

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.