]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
test before copy to avoid error
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Jun 2002 14:32:23 +0000 (14:32 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Jun 2002 14:32:23 +0000 (14:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@6014 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/forward_declarations

index 99ad2e547a409ff71d54506fe9235d46a8ac0888..7d72fa36131cf58697e0d6232cf9a710fd51933f 100644 (file)
@@ -21,8 +21,8 @@
 $(forward-declarations): $(filter-out %forward-declarations%,$(h-files)) \
                          $D/common/scripts/forward_declarations.pl
        @echo ============================ Remaking $(@F)
-       @touch $@.old
-       @-cp $@ $@.old > /dev/null 2>&1
+       @-touch $@.old
+       @if test -r $@ ; then cp $@ $@.old > /dev/null 2>&1 ; fi
        @$(PERL) $D/common/scripts/forward_declarations.pl   \
               $(filter-out %$(notdir $(forward-declarations)),$(h-files)) \
             > $@.new

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.