#!/bin/sh # 01.06.2005 Volker Quetschke # Basic test of dmake existence and the needed infrastructure. : ${DMAKEPROG:=dmake} file1="mymakefile.mk" file2="mytestfile" tmpfiles="$file1 $file2" trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15 # Test for "test" programm in path which test > /dev/null || { echo "Failure! \"test\" program missing." ; exit 1; } echo "Found \"test\" program." test=`which test` # Test for "echo" programm in path which echo > /dev/null || { echo "Failure! \"echo\" program missing." ; exit 1; } echo "Found \"echo\" program." # Test for dmake program ${test} -x "${DMAKEPROG}" || { echo "Failure! \"dmake\" is missing." ; exit 1; } echo "Found \"dmake\" program." # Remember to quote variables in generated makefiles( $ -> \$ ). cat > $file1 <