From: Joel Rosdahl Date: Wed, 17 Feb 2010 20:20:06 +0000 (+0100) Subject: Use "perl -pi -e" instead of "sed -i" to increase portability X-Git-Tag: v3.0pre0~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=681036bcd87c7f0b4adf0c63f94104da88ef3ab7;p=thirdparty%2Fccache.git Use "perl -pi -e" instead of "sed -i" to increase portability --- diff --git a/test.sh b/test.sh index 4f1fbed81..40167fd7f 100755 --- 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