]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix problem with forward declarations files, since the forward
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Dec 1999 15:27:50 +0000 (15:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Dec 1999 15:27:50 +0000 (15:27 +0000)
declarations file was used as input as well.

git-svn-id: https://svn.dealii.org/trunk@2128 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/forward_declarations

index 642afc41b655ee9e9b2f4816b19417e6cedae795..fdbf24aaf92c8f379cdc533a3384f0b9ac08b47b 100644 (file)
@@ -9,7 +9,8 @@
 #   a file to run diff on. send the output of the copy command
 #   (which may fail) to nirvana.
 # - write the forward declarations for the presently available
-#   header files to $@.new
+#   header files to $@.new. Use all header files except the 
+#   forward declarations file itself
 # - compare old and new forward-declarations files. if they
 #   differ (i.e. the result of 'diff' is a nonzero string) copy
 #   the nes file over the old one and thus also change the time 
@@ -22,7 +23,7 @@ $(forward-declarations): $(filter-out %forward-declarations%,$(h-files))
        @touch $@.old
        @-cp $@ $@.old > /dev/null 2>&1
        @perl $D/common/scripts/forward_declarations.pl   \
-              $(filter-out %forward-declarations.h,$(h-files)) \
+              $(filter-out %$(notdir $(forward-declarations)),$(h-files)) \
             > $@.new
        @if test -n "`diff $(forward-declarations).old $(forward-declarations).new`" ; then \
          echo "============================          file remade" ; \

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.