You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-commits@perl.apache.org by st...@apache.org on 2015/04/08 14:38:56 UTC
svn commit: r1672079 - /perl/Apache-Test/trunk/Makefile.PL
Author: stevehay
Date: Wed Apr 8 12:38:56 2015
New Revision: 1672079
URL: http://svn.apache.org/r1672079
Log:
Ensure file permissions and EOLs are set correctly when creating the release tarball
Otherwise EOLs in particular are not set correctly (i.e. LF) when creating a release from a workspace on a Windows machine since native EOLs (i.e. CRLF in this case) are used by default in client-side workspaces.
Modified:
perl/Apache-Test/trunk/Makefile.PL
Modified: perl/Apache-Test/trunk/Makefile.PL
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/Makefile.PL?rev=1672079&r1=1672078&r2=1672079&view=diff
==============================================================================
--- perl/Apache-Test/trunk/Makefile.PL (original)
+++ perl/Apache-Test/trunk/Makefile.PL Wed Apr 8 12:38:56 2015
@@ -86,6 +86,9 @@ WriteMakefile(
NO_META => $no_meta,
dist => {
COMPRESS => 'gzip -9f', SUFFIX => 'gz',
+ PREOP => 'find $(DISTVNAME) -type d -print|xargs chmod 0755 && ' .
+ 'find $(DISTVNAME) -type f -print|xargs chmod 0644',
+ TO_UNIX => 'find $(DISTVNAME) -type f -print|xargs dos2unix'
},
clean => {
FILES => "@clean_files",