fix CRLF in bash scripts when building on Windows
patch by Peter; reviewed by Joshua McKenzie for CASSANDRA-6798


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/dd60ab47
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/dd60ab47
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/dd60ab47

Branch: refs/heads/trunk
Commit: dd60ab474053ebd4cc38ed857df355293ae2c491
Parents: 60882c1
Author: Jonathan Ellis <[email protected]>
Authored: Mon Mar 17 11:37:10 2014 -0500
Committer: Jonathan Ellis <[email protected]>
Committed: Mon Mar 17 11:37:10 2014 -0500

----------------------------------------------------------------------
 build.xml | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/dd60ab47/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index a938b25..83ce003 100644
--- a/build.xml
+++ b/build.xml
@@ -886,6 +886,10 @@
     <target name="artifacts" depends="jar,javadoc"
             description="Create Cassandra release artifacts">
       <mkdir dir="${dist.dir}"/>
+      <!-- fix the control linefeed so that builds on windows works on linux 
-->
+      <fixcrlf srcdir="bin" includes="**/*" excludes="**/*.bat" eol="lf" 
eof="remove" />
+      <fixcrlf srcdir="conf" includes="**/*" excludes="**/*.bat" eol="lf" 
eof="remove" />
+      <fixcrlf srcdir="tools/bin" includes="**/*" excludes="**/*.bat" eol="lf" 
eof="remove" />
       <copy todir="${dist.dir}/lib">
         <fileset dir="${build.lib}"/>
         <fileset dir="${build.dir}">

Reply via email to