Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
f3fb0c74
Commit
f3fb0c74
authored
Jan 26, 1999
by
Kurt Zeilenga
Browse files
Fix mkdep to split lines with multiple dependencies.
parent
f1e934ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/mkdep
View file @
f3fb0c74
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment