Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
a2708937
Commit
a2708937
authored
Apr 06, 1999
by
Hallvard Furuseth
Browse files
Do not pipe to awk, use temporary file instead
parent
0960e34b
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/mkdep
View file @
a2708937
...
...
@@ -87,7 +87,7 @@ fi
TMP
=
/tmp/mkdep
$$
trap
'rm -f $TMP ; exit 1'
1 2 3 13 15
trap
'rm -f
$TMP.sed
$TMP ; exit 1'
1 2 3 13 15
cp
$MAKE
${
MAKE
}
.bak
...
...
@@ -134,7 +134,9 @@ _EOF_
$CC
$CC_MKDEP_FLAGS
$files
|
\
sed
-e
's; \./; ;g'
|
\
$SED
|
\
$SED
>
$TMP
.sed
# dont pipe to awk. SGI awk wants a filename as argument.
# (or '-', but I do not know if all other awks support that.)
awk
'
$1 ~ /:/ {
filenm=$1;
...
...
@@ -153,7 +155,7 @@ $1 !~ /:/ {
print rec;
}
}
'
noslash
=
"
$NOSLASH
"
>>
$TMP
'
noslash
=
"
$NOSLASH
"
$TMP
.sed
>>
$TMP
cat
<<
_EOF_
>>
$TMP
...
...
@@ -163,5 +165,5 @@ _EOF_
# copy to preserve permissions
cp
$TMP
$MAKE
rm
-f
${
MAKE
}
.bak
$TMP
rm
-f
${
MAKE
}
.bak
$TMP
.sed
$TMP
exit
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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