2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

3234. [bug] 'make depend' produced invalid makefiles. [RT #26830]

This commit is contained in:
Mark Andrews
2011-12-02 07:03:27 +00:00
parent 37d71e4493
commit b68dc65959
2 changed files with 28 additions and 14 deletions

View File

@@ -1,3 +1,5 @@
3234. [bug] 'make depend' produced invalid makefiles. [RT #26830]
3233. [bug] 'rndc freeze/thaw' didn't work for inline zones.
[RT #26632]

View File

@@ -140,25 +140,37 @@ if [ X"${MKDEPPROG}" != X ]; then
else
@MKDEPCC@ @MKDEPCFLAGS@ ${newargs} |
sed "
s; \./; ;g
s; \\./; ;g
s; \\\\; ;g
@LIBTOOL_MKDEP_SED@
$SED" |
awk '{
if ($1 != prev) {
awk '$1 ~ /:$/ {
if (rec != "")
print rec;
rec = $0;
prev = $1;
}
else {
if (length(rec $2) > 78) {
print rec;
rec = $0;
}
print rec;
if (NF == 1)
rec = $1;
else
rec = rec " " $2
rec = $1 " " $2;
for (i = 3; i <= NF; i++) {
if (length(rec $i) > 76) {
print rec " \\";
rec = " " $i;
} else {
rec = rec " " $i;
}
}
next;
}
{
for (i = 1; i <= NF; i++) {
if (length(rec $i) > 76) {
print rec, "\\";
rec = " " $i;
} else {
rec = rec " " $i;
}
}
}
}
END {
print rec
}' >> $TMP