[vlc-commits] tools: clean up after sed test
Sean McGovern
git at videolan.org
Wed Apr 16 11:14:52 CEST 2014
vlc | branch: master | Sean McGovern <gseanmcg at gmail.com> | Wed Apr 16 02:53:00 2014 -0400| [a1465c46ccaec092781b6ca972fade8f480da2f7] | committer: Rafaël Carré
tools: clean up after sed test
Some implementations of sed blindly take the argument following
-i to be the file extension for the backup during an in-place edit.
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1465c46ccaec092781b6ca972fade8f480da2f7
---
extras/tools/bootstrap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index f1b1981..28bad24 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -34,7 +34,7 @@ fi
check_sed() {
tmp="`pwd`/check_sed"
-trap "rm $tmp" EXIT
+trap "rm $tmp{,-e} 2>/dev/null" EXIT
echo "test file for GNU sed" > $tmp
if ! sed -i -e 's/sed//' $tmp >/dev/null 2>&1
then
More information about the vlc-commits
mailing list