#!/bin/sh # 29.09.2006 Volker Quetschke # Check if the directory cache can be made case insensitive # (issue 69814) : ${DMAKEPROG:=dmake} file1="mfile1.mk" file2="TeSt.target" tmpfiles="$file1 $file2" trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15 # Remove files from prior failed run rm -rf $tmpfiles echo "Something" > $file2 # Remember to quote variables in generated makefiles ( $ -> \$ ). # Also quote line continuations ( \ -> \\ ). cat > $file1 < /dev/null 2>&1 ; then echo "Wrong result: ${output}" result=1 fi test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles} test $result -ne 0 && echo "Failure!" exit $result