From: wolf Date: Thu, 30 Dec 1999 15:27:50 +0000 (+0000) Subject: Fix problem with forward declarations files, since the forward X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9cba1244c8a8aa6e9dd60a610542f36c76ef94;p=dealii-svn.git Fix problem with forward declarations files, since the forward declarations file was used as input as well. git-svn-id: https://svn.dealii.org/trunk@2128 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/forward_declarations b/deal.II/common/scripts/forward_declarations index 642afc41b6..fdbf24aaf9 100644 --- a/deal.II/common/scripts/forward_declarations +++ b/deal.II/common/scripts/forward_declarations @@ -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" ; \