projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b50fedb
)
check-host-sed.sh: use mktemp for temporary file
author
Peter Korsgaard
<jacmet@sunsite.dk>
Mon, 21 Jun 2010 20:33:51 +0000
(22:33 +0200)
committer
Peter Korsgaard
<jacmet@sunsite.dk>
Mon, 21 Jun 2010 21:02:31 +0000
(23:02 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/dependencies/check-host-sed.sh
patch
|
blob
|
history
diff --git
a/toolchain/dependencies/check-host-sed.sh
b/toolchain/dependencies/check-host-sed.sh
index 188b7210b71029cc1294c4e44488ee2a50b468fa..ed9a1d4dbd4905df590984578a82cf3581e09af7 100755
(executable)
--- a/
toolchain/dependencies/check-host-sed.sh
+++ b/
toolchain/dependencies/check-host-sed.sh
@@
-12,9
+12,10
@@
do
fi
fi
- echo "HELLO" > .sedtest
- $SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1
- RESULT=$(cat .sedtest)
+ tmp=$(mktemp)
+ echo "HELLO" > $tmp
+ $SED -i -e "s/HELLO/GOODBYE/" $tmp >/dev/null 2>&1
+ RESULT=$(cat $tmp)
if test $? != 0 ; then
SED=""
@@
-26,7
+27,7
@@
do
SED=""
fi
- rm -f
.sedtest
+ rm -f
$tmp
if [ ! -z "$SED" ] ; then
break
fi