crlf text files in zip archive

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@487885 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-12-16 21:08:42 +00:00
parent a19cb467a9
commit fe6343a808
1 changed files with 15 additions and 13 deletions

View File

@ -407,19 +407,7 @@
<copy todir="${build.docs}"> <copy todir="${build.docs}">
<fileset dir="site" /> <fileset dir="site" />
</copy> </copy>
<zip destfile="${dist}/${fullnamever}.zip">
<zipfileset dir="."
prefix="${fullnamever}"
includes="LICENSE.txt NOTICE.txt *.txt *.xml lib/** src/** example/**"
excludes="**/data/ **/logs/ **/classes/" />
<zipfileset dir="."
prefix="${fullnamever}"
includes="dist/*.jar dist/*.war" />
<zipfileset dir="${build.docs}"
prefix="${fullnamever}/docs/" />
</zip>
<solr-checksum file="${dist}/${fullnamever}.zip"/>
<tar destfile="${dist}/${fullnamever}.tgz" compression="gzip"> <tar destfile="${dist}/${fullnamever}.tgz" compression="gzip">
<tarfileset dir="." <tarfileset dir="."
prefix="${fullnamever}" prefix="${fullnamever}"
@ -433,6 +421,20 @@
</tar> </tar>
<solr-checksum file="${dist}/${fullnamever}.tgz"/> <solr-checksum file="${dist}/${fullnamever}.tgz"/>
<gunzip src="${dist}/${fullnamever}.tgz" dest="${dest}/${fullnamever}.tar"/>
<untar src="${dest}/${fullnamever}.tar" dest="${dest}"/>
<fixcrlf srcdir="${dest}/${fullnamever}"
eol="crlf"
includes="**/*.txt **/*.xml **/*.java **/*.html **/*.csv **/*.css **/*.properties **/*.jsp **/*.xsl **/*.py **/*.rb **/*.js **/*.json **/*.pl"
/>
<zip destfile="${dist}/${fullnamever}.zip">
<zipfileset dir="${dest}/${fullnamever}"
prefix="${fullnamever}" />
</zip>
<solr-checksum file="${dist}/${fullnamever}.zip"/>
</target> </target>
<target name="nightly" <target name="nightly"