1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-12 06:49:18 -04:00
ports/benchmarks/unixbench/files/patch-Run
Mathieu Arnold 1a8a092d9f Rename all files containing a : in their filename.
While there, run make makepatch on affected ports, and rename patches
accordingly.

Sponsored by:	Absolight
2016-06-17 23:28:04 +00:00

61 lines
1.4 KiB
Text

--- Run.orig 1999-07-28 22:04:47 UTC
+++ Run
@@ -88,11 +88,11 @@ else
fi
# check that the required files are in the proper places
-if make check; then
- :
-else
- make all
-fi
+#if make check; then
+# :
+#else
+# make all
+#fi
# establish full paths to directories
@@ -114,7 +114,7 @@ cd $SCRPDIR
SCRPDIR=`pwd`
cd $_WD
-TMPDIR=${HOMEDIR}/tmp
+TMPDIR=${TMPDIR-${HOMEDIR}/tmp}
cd $TMPDIR
TMPDIR=`pwd`
cd $_WD
@@ -367,10 +367,11 @@ do # line argument processing
C)
logmsg="C Compiler Throughput"
prog="looper ${looper-60} ${CC} cctest.c"
+ prog="looper ${looper-60} ${CC} cctest.c -o ${TMPDIR}/a.out"
stdout=/dev/null
repeat="$shortloop"
cleanopt="-m $TMPTIMES"
- rm -f ${TESTDIR}/cctest.o ${TESTDIR}/a.out
+ rm -f ${TESTDIR}/cctest.o ${TMPDIR}/a.out
;;
arithoh)
@@ -385,8 +386,8 @@ do # line argument processing
dc)
logmsg="Dc: sqrt(2) to 99 decimal places"
- prog="looper ${looper-30} dc"
- stdin=dc.dat
+ prog="looper ${looper-30} \"dc < ${TESTDIR}/dc.dat\""
+ stdin=
stdout=/dev/null
cleanopt="-m $TMPTIMES"
;;
@@ -508,7 +509,7 @@ do # line argument processing
########### some specific cleanup routines ##############
case $bench in
C)
- rm -f ${TESTDIR}/cctest.o ${TESTDIR}/a.out
+ rm -f ${TESTDIR}/cctest.o ${TMPDIR}/a.out
;;
fstime | fsbuffer | fsdisk)