update dev300-m58
[ooovba.git] / dmake / tests / targets-11
blob5dbff149d80606f124431111e790b44a00d880a8
1 #!/bin/sh
3 # 09.07.2006 Volker Quetschke
4 # If %-targets are defined with the .SILENT attribute and the -vr verbose
5 # flag is used dmake 4.5 stops falsely with an error.
6 # (issue 67025)
8 : ${DMAKEPROG:=dmake}
9 file1="mfile1.mk"
10 tmpfiles="$file1"
12 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
14 # Remove files from prior failed run
15 rm -rf $tmpfiles
17 # Remember to quote variables in generated makefiles( $ -> \$ ).
18 # Check that we don't issue an error.
19 cat > $file1 <<EOT
20 SHELL*:=/bin/sh
21 SHELLFLAGS*:=-ce
23 %.xx .SILENT :
24 +echo "OK"
25 EOT
27 output1=`eval ${DMAKEPROG} -vr -rf $file1 all.xx 2>&1 `
28 result1=$?
30 if test $result1 -eq 0 ; then
31 echo "Success - Cleaning up"
32 rm -rf $tmpfiles
33 result=0
34 else
35 echo "Failure! dmake failed with error."
36 result=1
38 exit $result