From aa8df013145a34264d134a2204d562532943c0aa Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 28 Sep 2005 23:55:34 +0000 Subject: [PATCH] Remove all symbolic links in results/ when remaking. git-svn-id: https://svn.dealii.org/trunk@11547 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/results/Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tests/results/Makefile b/tests/results/Makefile index 6454532d17..886076ccb1 100644 --- a/tests/results/Makefile +++ b/tests/results/Makefile @@ -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 -- 2.39.5