From: Ben Pfaff Date: Wed, 26 May 2010 04:46:23 +0000 (-0700) Subject: perl-module: Copy perl-module files if missing as well as if changed. X-Git-Tag: v0.7.6~401 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb2f5ddb7eb9396936e6712ab39a3dca08ec7f1e;p=pspp-builds.git perl-module: Copy perl-module files if missing as well as if changed. 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. --- diff --git a/perl-module/automake.mk b/perl-module/automake.mk index c442d04e..b689fd19 100644 --- a/perl-module/automake.mk +++ b/perl-module/automake.mk @@ -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 ; \