
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
33 lines
536 B
Awk
33 lines
536 B
Awk
BEGIN { split(COMPATDIRS, dirs); n = 1; last_prefix = "" }
|
|
/^#/ { print; }
|
|
{
|
|
if (NF > 0) {
|
|
pos = index($0, S);
|
|
if (pos == 0) {
|
|
print;
|
|
next;
|
|
}
|
|
prefix = substr($0, 1, pos)
|
|
if (prefix != last_prefix) {
|
|
for (d in dirs) {
|
|
for (f = 1; f < n; f++) {
|
|
x=files[f]; sub(S, S "/" dirs[d], x);
|
|
print x;
|
|
}
|
|
}
|
|
delete files;
|
|
n = 1;
|
|
last_prefix = prefix;
|
|
}
|
|
files[n++] = $0;
|
|
}
|
|
next
|
|
}
|
|
END {
|
|
for (d in dirs) {
|
|
for (f = 1; f < n; f++) {
|
|
x=files[f]; sub(S, S "/" dirs[d], x); print x;
|
|
}
|
|
}
|
|
}
|