Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / dmake / tests / misc-21
blob9dea6cc234a2e764f4d6b5c41ee8fd83fe80dc13
1 #!/bin/sh
3 # 13.10.2007 Volker Quetschke
4 # Check that SHELLCMDQUOTE adds the characters to the command.
5 # issue 81252
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 cat > $file1 <<EOT
18 SHELL!:=printf
19 SHELLFLAGS!:=
21 SHELLCMDQUOTE=X
23 all :
24 @+testtest
26 EOT
28 output=`eval ${DMAKEPROG} -rf $file1`
29 result=$?
31 if test "$result" = "0" && test "$output" = "XtesttestX" ; then
32 # OK
33 dummy=1
34 else
35 echo "Wrong result: ${output}"
36 result=1
37 fi
39 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
40 test $result -ne 0 && echo "Failure!"
41 exit $result