Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / tests / targets-15
blob6a5310a6e4b03195b62e14db5fe7965175928fbd
1 #!/bin/sh
3 # 06.10.2006 Volker Quetschke
4 # Check that normalized targets are treated as equal.
5 # (issue 69742)
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 # On cygwin add c:/temp/try5.xx to the prerequisites to test cygwin related
23 # normalization
24 all : try1.xx try2.xx ../..//d/try3.xx xxx//yyy/../../try4.xx
25 # c:/temp/try5.xx
26 echo all
28 ./try1.xx :
29 echo try1
31 ./././try2.xx :
32 echo try2
34 ../../d/try3.xx :
35 echo try3
37 ./xxx/..////try4.xx :
38 echo try4
40 /cygdrive/c/temp/try5.xx :
41 echo try5
43 EOT
45 output1=`eval ${DMAKEPROG} -rf $file1 2>&1 `
46 result1=$?
49 if test $result1 -eq 0 ; then
50 echo "Success - Cleaning up"
51 rm -rf $tmpfiles
52 else
53 echo "Failure! dmake reported:"
54 echo "$output1"
56 exit $result