In addition to the prerequisites mentioned above, you also need:
- * asciidoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
- * autoconf (http://www.gnu.org/software/autoconf/)
- * perl (http://www.perl.com/) to run the testsuite
+ - asciidoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
+ - autoconf (http://www.gnu.org/software/autoconf/)
Run "./autogen.sh" to generate "configure" and "config.h.in" and then follow
-the steps mentioned in INSTALLATION.
+the steps mentioned under INSTALLATION above.
fi
}
+sed_in_place() {
+ expr=$1
+ shift
+ for file in $*; do
+ (rm $file; sed "$expr" >$file) <$file
+ done
+}
+
run_suite() {
echo "starting testsuite $1"
testsuite=$1
checkstat 'cache hit (preprocessed)' 0
checkstat 'cache miss' 1
- perl -pi -e 's/foo/ignored/' comments.h comments.c
+ sed_in_place 's/foo/ignored/' comments.h comments.c
sleep 1 # Sleep to make the include file trusted.
$CCACHE $COMPILER -c comments.c
checkstat 'cache miss' 1
# Check that comment-like string contents are hashed.
- perl -pi -e 's/apple/orange/' comments.c
+ sed_in_place 's/apple/orange/' comments.c
sleep 1 # Sleep to make the include file trusted.
$CCACHE $COMPILER -c comments.c