]> git.saurik.com Git - apple/xnu.git/blame - bsd/conf/compat_hdrs.awk
xnu-1504.7.4.tar.gz
[apple/xnu.git] / bsd / conf / compat_hdrs.awk
CommitLineData
1c79356b
A
1BEGIN {
2 hdr = "#warning Compatibility header file imported, use <%s/%s>\n" \
3 "#import\t<%s/%s>\n"
4}
5/^#/ { # skip comments in data file
6 continue;
7}
8/COMPATMACHINE/ {
9 ofile = sprintf("compat/%s/%s", $2, $3);
10 printf("#import\t<machine/compat_%s>\n", $3) > ofile
11 printf(hdr, $1, $3, $1, $3) > ofile;
12 continue;
13}
14/DELETED/ {
15 ofile = sprintf("compat/%s/%s", $2, $3);
16 printf("#error This file has been removed\n") > ofile;
17 continue;
18}
19{
20 ofile = sprintf("compat/%s/%s", $2, $3);
21 printf(hdr, $1, $NF, $1, $NF) > ofile;
22}