]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove all symbolic links in results/ when remaking.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Sep 2005 23:55:34 +0000 (23:55 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Sep 2005 23:55:34 +0000 (23:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@11547 0785d39b-7218-0410-832d-ea1e28bc413d

tests/results/Makefile

index 6454532d171fefa9a816e4c994f30fc01ba97ed8..886076ccb1854943f8a283b0b5ad8e0928b6fbea 100644 (file)
@@ -1,8 +1,8 @@
 # Makefile,v 1.10 2003/05/02 15:30:57 wolf Exp
 
-# Generate links to identical output files
-
-all: .links
+# Generate links to identical output files. when making these links, first
+# remove all links that we presently have
+all: clean .links
 
 
 # if one calls linkfiles-TARGET-to-SOURCE, then it looks into the target
@@ -64,7 +64,20 @@ linkdirs-%:
          linkdirs-i686-pc-linux-gnu+gcc3.3-to-i686-pc-linux-gnu+gcc3.2
        @touch .links
 
+# remove the links file, but also remove all linked directories here. in
+# subdirectories, remove all actual links to other files. they will simply be
+# regenerated later on
 clean:
+       for i in * ; do \
+               if $(TEST_MINUS_L) $$i ; then rm -f $$i ; fi ; \
+       done
+       for i in * ; do \
+               if test -d $$i ; then \
+                       for j in $$i/*/* ; do \
+                               if $(TEST_MINUS_L) $$j ; then rm -f $$j ; fi ; \
+                       done ; \
+               fi ; \
+       done
        rm .links
 
 

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.