]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use same hack again.
authordeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 8 May 2003 16:07:14 +0000 (16:07 +0000)
committerdeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 8 May 2003 16:07:14 +0000 (16:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@7613 0785d39b-7218-0410-832d-ea1e28bc413d

tests/results/Makefile

index 1d61d732b733dc0f0abb375123ec013ccb131da8..065ba45f397011c3004747d0b4a03896490b35aa 100644 (file)
@@ -15,7 +15,7 @@ all: .links
 # unfortunately, -L is not available in test when plain sh is used, so work
 # around this by explicitely using bash
 linkfiles-%:
-       TARGET=`echo $@ | $(PERL) -pi -e 's/linkfiles-//; s/-to-.*//;'` ; \
+       @TARGET=`echo $@ | $(PERL) -pi -e 's/linkfiles-//; s/-to-.*//;'` ; \
        SOURCE=`echo $@ | $(PERL) -pi -e 's/.*-to-//;'` ; \
        echo "Creating links from $$SOURCE into $$TARGET" ; \
        cd $$SOURCE ; \
@@ -31,11 +31,13 @@ linkfiles-%:
 
 # if called with linksdirs-TARGET-to-SOURCE, creates a link from the source
 # directory to the target directory
+#
+# use same hack for test -L as above
 linkdirs-%:
        @TARGET=`echo $@ | $(PERL) -pi -e 's/linkdirs-//; s/-to-.*//;'` ; \
        SOURCE=`echo $@ | $(PERL) -pi -e 's/.*-to-//;'` ; \
        echo "Aliasing $$TARGET to $$SOURCE" ; \
-       if test -L $$TARGET ; then rm $$TARGET ; fi ; \
+       if bash test -L $$TARGET ; then rm $$TARGET ; fi ; \
        ln -s $$SOURCE $$TARGET
 
 .links:   linkfiles-i686-pc-linux-gnu+icc7.1-to-i686-pc-linux-gnu+gcc3.2 \

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.