You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/05/05 00:50:47 UTC

svn commit: r168203 - /lenya/trunk/src/targets/dist-build.xml

Author: gregor
Date: Wed May  4 15:50:46 2005
New Revision: 168203

URL: http://svn.apache.org/viewcvs?rev=168203&view=rev
Log:
Use Ant task to fix CRLF for the shell scripts and make them executable

Modified:
    lenya/trunk/src/targets/dist-build.xml

Modified: lenya/trunk/src/targets/dist-build.xml
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/targets/dist-build.xml?rev=168203&r1=168202&r2=168203&view=diff
==============================================================================
--- lenya/trunk/src/targets/dist-build.xml (original)
+++ lenya/trunk/src/targets/dist-build.xml Wed May  4 15:50:46 2005
@@ -52,8 +52,11 @@
     </copy>
     <delete dir="${dist.bin.dir}/tools/anttasks"/>
     
-	<!-- Make executable -->
+     <!-- Make shell scripts executable -->
     <chmod file="${dist.bin.dir}/*.sh" perm="ugo+rx"/>
+
+  	<!-- Make sure linefeeds in shell scripts are UNIX-style -->
+   <fixcrlf srcdir="${dist.bin.dir}" eol="lf" includes="*.sh"/>
   </target>
 
   <target name="dist-bin" depends="prepare-dist-bin" description="Build a regular binary distribution tar ball">
@@ -112,6 +115,12 @@
   	  <include name="**/about.xml"/>
   	  <replacefilter token="@lenya.version@" value="${version}"/>
   	</replace>
+
+    <!-- Make shell scripts executable -->
+   <chmod file="${dist.src.dir}/*.sh" perm="ugo+rx"/>
+
+  	<!-- Make sure linefeeds in shell scripts are UNIX-style -->
+   <fixcrlf srcdir="${dist.src.dir}" eol="lf" includes="*.sh"/>
   </target>
 
   <target name="dist-src" depends="prepare-dist-src" description="Builds a regular tar ball containing the sources for developers">



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org