9a87189027
and the information from compat/archdirs.mk. Also add suport MKCOMPATTESTS and process the NetBSD.dist.tests to generate appropriate compat directories.
18 lines
255 B
Awk
18 lines
255 B
Awk
BEGIN { n = 1 }
|
|
/^#/ { print }
|
|
{
|
|
if (NF > 0 && substr($0, 1, 1) != "#") {
|
|
files[n++] = $0;
|
|
}
|
|
next;
|
|
}
|
|
END {
|
|
split(COMPATDIRS, dirs);
|
|
for (d in dirs) {
|
|
for (f = 1; f < n; f++) {
|
|
x=files[f]; sub("@ARCH_SUBDIR@", dirs[d], x);
|
|
print x;
|
|
}
|
|
}
|
|
}
|