3 # 09.11.2006 Volker Quetschke
4 # Check that TMD honors if .SETDIR is used (with drive letters on cygwin)
11 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
13 # Remove files from prior failed run
16 # Remember to quote variables in generated makefiles( $ -> \$ ).
22 .IMPORT .IGNORE : TEMP
28 # Test if .SETDIR works with drive letters
29 .IF "\$(subst,Cygwin, \$(shell @uname))"!="\$(shell @uname)"
30 SDIR:=\$(shell @+cygpath -d "\$(TEMP)")
35 # Make TEMP the target directory, cd to TMD should go back to
36 # the original directory
37 all ".SETDIR=\$(SDIR)" :
43 output1
=`eval ${DMAKEPROG} -r -f $file1`
46 if test "$output1" != "`pwd`"; then
47 echo "Test 1: Wrong result: ${output1}"
53 if test $result1 -eq 0; then
54 echo "Success - Cleaning up"