Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / tests / targets-16
blob795fb7a636500f206d1912130f5abf2f69820f9f
1 #!/bin/sh
3 # 08.10.2006 Volker Quetschke
4 # Check that $ in dynamic prerequisites are handled correctly.
5 # (issue 70168)
7 : ${DMAKEPROG:=dmake}
8 file1="mfile1.mk"
9 tmpfiles="$file1"
11 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
13 # Remove files from prior failed run
14 rm -rf $tmpfiles
16 # Remember to quote variables in generated makefiles( $ -> \$ ).
17 # Check that we set AAA to set_AAA.
18 cat > $file1 <<EOT
19 SHELL*:=/bin/sh
20 SHELLFLAGS*:=-ce
22 DYNPRQS=a\$\$xx1 a\$\$xx2
24 all : \$\$(DYNPRQS) a\$\$\$\$xx3
25 echo all
27 a\$\$xx1 :
28 echo a1:\$@
30 a\$\$xx2 :
31 echo a2:\$@
33 a\$\$xx3 :
34 echo a3:\$@
36 EOT
38 output1=`eval ${DMAKEPROG} -rf $file1 2>&1 `
39 result1=$?
42 if test $result1 -eq 0 ; then
43 echo "Success - Cleaning up"
44 rm -rf $tmpfiles
45 else
46 echo "Failure! dmake reported:"
47 echo "$output1"
49 exit $result