mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-11 13:50:39 +08:00
Update mkdep to handle multiple files on same line
This commit is contained in:
parent
fa2c12ce38
commit
f878e9b3e3
2
CHANGES
2
CHANGES
@ -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
|
||||
|
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