]> Zhao Yanbai Git Server - minix.git/commitdiff
check for perl, don't assume Run is executable.
authorBen Gras <ben@minix3.org>
Wed, 3 Feb 2010 14:18:25 +0000 (14:18 +0000)
committerBen Gras <ben@minix3.org>
Wed, 3 Feb 2010 14:18:25 +0000 (14:18 +0000)
test/benchmarks/unixbench-5.1.2/run.sh

index 2259753bfe348834727f19fa11a6908ddd933db2..4c3b4219b22209043e0297955e1e26bfcf605145 100755 (executable)
@@ -1,4 +1,8 @@
 #!/bin/sh
 export CC=cc
 export MINIX=1
-./Run
+if perl -e 'exit 0'
+then   perl -w Run
+else   echo "perl not installed. please install perl to run unixbench." >&2
+       exit 1
+fi