]> git.imager.perl.org - bse.git/commitdiff
work around a bug in some versions of ExtUtils::Manifest
authorTony Cook <tony@develop-help.com>
Mon, 29 Jan 2007 05:02:27 +0000 (05:02 +0000)
committertony <tony@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Mon, 29 Jan 2007 05:02:27 +0000 (05:02 +0000)
Makefile

index b1f748b123ac4d5658bed5451b325ee31514bfb7..a755cb6c66672e416e41c415acb9b6ae05ed4877 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -44,11 +44,14 @@ $(DISTTGZ): distdir
 
 #      tar czf $(DISTFILE) -C .. bse --exclude '*~' --exclude '*,v' --exclude 'pod2html-*cache'
 
+# recent ExtUtils::Manifest don't copy the executable bit, fix that here
+
 distdir: docs dbinfo version
        -perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
        perl -MExtUtils::Manifest=manicopy,maniread -e "manicopy(maniread(), '$(DISTBUILD)')"
        mkdir $(DISTBUILD)/site/htdocs/shop
        find $(DISTBUILD) -type f | xargs chmod u+w
+       for i in `cat MANIFEST` ; do if [ -x $$i ] ; then chmod a+x $(DISTBUILD)/$$i ; fi ; done
 
 clean:
        -perl -MExtUtils::Command -e rm_f site/htdocs/index.html site/htdocs/shop/*.html site/htdocs/a/*.html