]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use "perl -pi -e" instead of "sed -i" to increase portability
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Feb 2010 20:20:06 +0000 (21:20 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Feb 2010 20:20:06 +0000 (21:20 +0100)
test.sh

diff --git a/test.sh b/test.sh
index 4f1fbed81e07fc249404844555b3cdadfc0686a1..40167fd7f7c81f72267c36a624fff6fb46a64171 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -652,7 +652,7 @@ EOF
     checkstat 'cache hit (preprocessed)' 0
     checkstat 'cache miss' 1
 
-    sed -i 's/foo/ignored/' comments.h comments.c
+    perl -pi -e 's/foo/ignored/' comments.h comments.c
     sleep 1 # Sleep to make the include file trusted.
 
     $CCACHE $COMPILER -c comments.c
@@ -661,7 +661,7 @@ EOF
     checkstat 'cache miss' 1
 
     # Check that comment-like string contents are hashed.
-    sed -i 's/apple/orange/' comments.c
+    perl -pi -e 's/apple/orange/' comments.c
     sleep 1 # Sleep to make the include file trusted.
 
     $CCACHE $COMPILER -c comments.c