3 # 09.11.2006 Volker Quetschke
4 # Check DOS style paths and directory caching with cygwin dmake or just
5 # normal paths with other versions.
11 tmpfiles
="$file1 $file2"
13 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
15 # Remove files from prior failed run
18 echo "Something" > $file2
20 # Remember to quote variables in generated makefiles ( $ -> \$ ).
21 # Also quote line continuations ( \<nl> -> \\<nl> ).
28 # Test if .SETDIR works with drive letters
29 .IF "\$(subst,Cygwin, \$(shell @uname))"!="\$(shell @uname)"
30 MYTARGET:=\$(shell @+cygpath -d "\$(PWD)")\target.abc
32 MYTARGET:=\$(PWD)/target.abc
36 @echo "Building \$@ - \$(MYTARGET)"
40 output
=`eval ${DMAKEPROG} -r -f $file1`
43 if echo "$output" |
grep "target.abc' is up to date" > /dev
/null
2>&1 ; then
47 echo "Wrong result: ${output}"
51 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
52 test $result -ne 0 && echo "Failure!"