Update mkdep to handle multiple files on same line

This commit is contained in:
Kurt Zeilenga 1999-01-28 19:26:21 +00:00
parent fa2c12ce38
commit f878e9b3e3
2 changed files with 13 additions and 7 deletions

View File

@ -4,6 +4,8 @@ Changes included in OpenLDAP 1.2
CVS Tag: OPENLDAP_REL_ENG_1_2
Fixed slapd/ldbm/add cache set state deadlock bug
Update ldap_open(3) man page to note ldap_init() is preferred.
Build environment
Fixed mkdep to handle multiple dependent files on one line
Changes included in OpenLDAP 1.2
CVS Tag: OPENLDAP_REL_ENG_1_2_BETA

View File

@ -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