diff Makefile @ 1390:b8ff6a83c27f

Dstress on Mac OS X Anders F Bj?rklund <afb@algonet.se> 2007-03-08 email:dd8a3d4db0d92fc8dcbfc0b01c368306@algonet.se
author thomask
date Thu, 08 Mar 2007 16:20:14 +0000
parents dd574a01148c
children 16361129bf5f
line wrap: on
line diff
--- a/Makefile	Thu Mar 08 16:19:55 2007 +0000
+++ b/Makefile	Thu Mar 08 16:20:14 2007 +0000
@@ -146,7 +146,8 @@
 # target should fail to compile
 #
 nocompile : $(dstress__) nocompile_clean
-	find nocompile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-nocompile" > nocompile.sh
+	echo '#!/bin/sh' > nocompile.sh
+	find nocompile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-nocompile" >> nocompile.sh
 	chmod +x nocompile.sh
 	./nocompile.sh 2>> $(LOG)
 
@@ -175,7 +176,8 @@
 # target should compile (excludes linking)
 #
 compile : $(dstress__) compile_clean
-	find compile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-compile" > compile.sh
+	echo '#!/bin/sh' > compile.sh
+	find compile -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-compile" >> compile.sh
 	chmod +x compile.sh
 	./compile.sh 2>> $(LOG)
 
@@ -202,7 +204,8 @@
 # target should compile, link and run
 # 
 run : $(dstress__) run_clean
-	find run -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-run" > run.sh
+	echo '#!/bin/sh' > run.sh
+	find run -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-run" >> run.sh
 	chmod +x run.sh
 	./run.sh 2>> $(LOG)
 
@@ -270,7 +273,8 @@
 # target should compile and link but fail to run
 # 
 norun : $(dstress__) norun_clean
-	find norun -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-norun" > norun.sh
+	echo '#!/bin/sh' > norun.sh
+	find norun -type f | grep -v ".svn" | sort -f | xargs -n 1 echo "$(dstress__) torture-norun" >> norun.sh
 	chmod +x norun.sh
 	./norun.sh 2>> $(LOG)