3 # 01.06.2005 Volker Quetschke
4 # Tests for special dmake macros.
11 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
13 trap 'rm -rf $tmpfiles' 1 2 3 15
15 # Remember to quote variables in generated makefiles( $ -> \$ ).
25 +@echo -e '\n\$\$(SPACECHAR) section'
26 +test ": :" = ":\$(SPACECHAR):"
28 +@echo -e '\n\$\$(MACRO:s/pat/rep/) section'
29 +test ":aZbZc:" = ":\$(TEST1:s/ /Z/):"
30 +test ":aZbZc:" = ":\$(TEST1:s/\$(SPACECHAR)/Z/):"
31 +test ":aZbZc:" = ":\$(TEST1:s/ /\$(PAT)/ ):"
35 ${DMAKEPROG} -r -f $file1
38 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
39 test $result -ne 0 && echo "Failure!"