mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-11-27 02:22:00 +08:00
Fix mkdep to split lines with multiple dependencies.
This commit is contained in:
parent
f1e934effb
commit
f3fb0c74a6
18
build/mkdep
18
build/mkdep
@ -132,17 +132,21 @@ $CC -M $files | \
|
||||
$SED | \
|
||||
awk '
|
||||
$1 ~ /:/ {
|
||||
filenm=$1
|
||||
dep=$2
|
||||
filenm=$1;
|
||||
dep=substr($0, length(filenm)+1);
|
||||
}
|
||||
$1 !~ /:/ {
|
||||
dep=$1
|
||||
dep=$0;
|
||||
}
|
||||
/.*/ {
|
||||
if (( noslash == "yes") && (dep ~ /^\// )) next
|
||||
if ( length(dep) < 2 ) next
|
||||
rec = filenm " " dep;
|
||||
print rec;
|
||||
split(dep, depends, " ");
|
||||
for(d in depends) {
|
||||
dfile = depends[d];
|
||||
if (( noslash == "yes") && (dfile ~ /^\// )) next
|
||||
if ( length(dfile) < 2 ) continue
|
||||
rec = filenm " " dfile;
|
||||
print rec;
|
||||
}
|
||||
}
|
||||
' noslash="$NOSLASH" >> $TMP
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user