3 # 01.06.2005 Volker Quetschke
4 # Basic test of dmake existence and the needed infrastructure.
9 tmpfiles
="$file1 $file2"
11 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
13 # Test for "test" programm in path
14 which test > /dev
/null ||
{ echo "Failure! \"test\" program missing." ; exit 1; }
15 echo "Found \"test\" program."
18 # Test for "echo" programm in path
19 which echo > /dev
/null ||
{ echo "Failure! \"echo\" program missing." ; exit 1; }
20 echo "Found \"echo\" program."
22 # Test for dmake program
23 ${test} -x "${DMAKEPROG}" || { echo "Failure! \"dmake\" is missing." ; exit 1; }
24 echo "Found \"dmake\" program."
26 # Remember to quote variables in generated makefiles( $ -> \$ ).
30 @echo 'Generating ${file2}'
34 ${DMAKEPROG} -r -f $file1
36 if ${test} ! -e "${file2}"; then
41 ${test} $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
42 ${test} $result -ne 0 && echo "Failure!"