3 # 01.09.2005 Volker Quetschke
4 # Tests if dmake can work with makefiles with DOS lineendings.
9 file2
="mymakefile_dos.mk"
10 tmpfiles
="$file1 $file2"
12 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
14 trap 'rm -rf $tmpfiles' 1 2 3 15
16 # Remember to quote variables in generated makefiles( $ -> \$ ).
18 # Testing continuation char in recipes
30 #more compatible version of: unix2dos $file1
32 #$AWK 'sub("$", "\r")' $file1 > $file2
33 $AWK '{print $0"\r"}' $file1 > $file2
35 ${DMAKEPROG} -r -f $file2
38 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
39 test $result -ne 0 && echo "Failure!"