perl-module: Copy perl-module files if missing as well as if changed.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 26 May 2010 04:46:23 +0000 (21:46 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 26 May 2010 04:46:34 +0000 (21:46 -0700)
I don't know why the behavior here changed, because I don't see any changes
that would cause the problem, but at least the new version makes equal
sense.

perl-module/automake.mk

index c442d04eb50615bf231a035580fbd56d4ae1104a..b689fd19ebdfeb2b36bc3f109166c2bd24bfb90c 100644 (file)
@@ -40,7 +40,8 @@ perl_module_tarball:
         for f in $(module_sources); do \
          destdir=`dirname $$f` ;\
          mkdir -p $$destdir ;\
-         if test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
+         if test ! -e "$(top_builddir)/$$f" || \
+            test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
                 cp $(top_srcdir)/$$f $$destdir ; \
                 echo cp $(top_srcdir)/$$f $$destdir ; \
          fi ; \