Modified build script to include pdf and odt distributions,

still need to convert docs to pdf and odt manually though
This commit is contained in:
Mark Baker 2012-09-09 19:09:45 +01:00
parent 0dac1e1ab5
commit 554ef2199d
1 changed files with 12 additions and 8 deletions

View File

@ -6,6 +6,8 @@
promptText="Enter PHPExcel version number" /> promptText="Enter PHPExcel version number" />
<propertyprompt propertyName="releaseDate" defaultValue="2010-01-01" <propertyprompt propertyName="releaseDate" defaultValue="2010-01-01"
promptText="Enter PHPExcel release date" /> promptText="Enter PHPExcel release date" />
<propertyprompt propertyName="documentFormat" defaultValue="doc"
promptText="Enter Document Format" />
<adhoc-task name="phpzip"> <adhoc-task name="phpzip">
<![CDATA[ <![CDATA[
@ -102,7 +104,8 @@
<copy todir="./build/Documentation" overwrite="true"> <copy todir="./build/Documentation" overwrite="true">
<fileset dir="../Documentation"> <fileset dir="../Documentation">
<include name="*.*" /> <include name="*.${documentFormat}" />
<include name="*.txt" />
<exclude name="**/.svn" /> <exclude name="**/.svn" />
</fileset> </fileset>
</copy> </copy>
@ -124,7 +127,7 @@
</copy> </copy>
<copy file="../changelog.txt" tofile="./build/changelog.txt" overwrite="true" /> <copy file="../changelog.txt" tofile="./build/changelog.txt" overwrite="true" />
<copy file="../license.txt" tofile="./build/license.txt" overwrite="true" /> <copy file="../license.md" tofile="./build/license.txt" overwrite="true" />
<copy file="../install.txt" tofile="./build/install.txt" overwrite="true" /> <copy file="../install.txt" tofile="./build/install.txt" overwrite="true" />
</target> </target>
@ -171,8 +174,8 @@
<target name="release-standard" depends="apidocs"> <target name="release-standard" depends="apidocs">
<mkdir dir="./release" /> <mkdir dir="./release" />
<echo msg="Creating release package (v${packageVersion})..." /> <echo msg="Creating release package (v${packageVersion} with ${documentFormat} documents)..." />
<phpzip destfile="./release/${packageVersion}.zip"> <phpzip destfile="./release/PHPExcel_${packageVersion}_${documentFormat}.zip">
<fileset dir="./build"> <fileset dir="./build">
<include name="**/*" /> <include name="**/*" />
</fileset> </fileset>
@ -217,10 +220,11 @@
<target name="release-documentation"> <target name="release-documentation">
<mkdir dir="./release" /> <mkdir dir="./release" />
<echo msg="Creating documentation release (v${packageVersion})..." /> <echo msg="Creating documentation release (v${packageVersion} with ${documentFormat} documents)..." />
<copy todir="./build" overwrite="true"> <copy todir="./build" overwrite="true">
<fileset dir="../Documentation"> <fileset dir="../Documentation">
<include name="*.*" /> <include name="*.${documentFormat}" />
<include name="*.txt" />
<exclude name="**/.svn" /> <exclude name="**/.svn" />
</fileset> </fileset>
</copy> </copy>
@ -231,8 +235,8 @@
</fileset> </fileset>
</copy> </copy>
<echo msg="Creating documentation release package (v${packageVersion})..." /> <echo msg="Creating documentation release package (v${packageVersion} with ${documentFormat} documents)..." />
<phpzip destfile="./release/${packageVersion}-documentation.zip"> <phpzip destfile="./release/PHPExcel_${packageVersion}-documentation_${documentFormat}.zip">
<fileset dir="./build"> <fileset dir="./build">
<include name="**/*" /> <include name="**/*" />
<exclude name="**/.svn" /> <exclude name="**/.svn" />