Changeset 21630 for main/trunk/release-kits/kits/rk3
- Timestamp:
- 2010-01-26T14:44:30+13:00 (14 years ago)
- Location:
- main/trunk/release-kits/kits/rk3/ant-scripts
- Files:
-
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/release-kits/kits/rk3/ant-scripts/build.xml
r20543 r21630 10 10 <project name="rk3-build" default="rk3"> 11 11 12 <!-- CONSTANTS --> 13 14 <!-- for the benefit of the shared scripts, set release-kit home --> 15 <property name="rk.name" value="rk3"/> 16 <property name="rk.home" value="${rk3.home}" /> 12 <property name="version.major" value="3"/> 17 13 18 14 <!-- IMPORT OTHER ANT SCRIPTS --> 19 <import file=" ../core/ant-scripts/init.xml"/>20 <import file=" ../core/ant-scripts/operations-on-gli.xml"/>21 <import file=" ../greenstone3/ant-scripts/rk3-targets.xml"/>15 <import file="${rk.home}/shared/core/ant-scripts/init.xml"/> 16 <import file="${rk.home}/shared/core/ant-scripts/operations-on-gli.xml"/> 17 <import file="${rk.home}/shared/greenstone2/ant-scripts/rk3-targets.xml"/> 22 18 23 19 <import file="compile.xml"/> 24 <import file="create-distribution.xml"/> 25 <import file="create-installer.xml"/> 20 <import file="${rk.home}/shared/core/ant-scripts/create-installer.xml"/> 26 21 <import file="wrap.xml"/> 27 22 … … 29 24 <target name="rk3" depends="init,gs3-init"> 30 25 <antcall target="compile"/> 31 <antcall target="create-distribution"/> 32 <ant inheritRefs="true" dir="." antfile="${rk3.home}/ant-scripts/create-components.xml" target="create-components"/> 26 <ant inheritRefs="true" dir="." antfile="${rk.home}/kits/${rk.name}/ant-scripts/create-components.xml" target="create-components"/> 33 27 <antcall target="create-installer"/> 34 28 <antcall target="wrap"/> 35 <antcall target="create-minimal-distribution"/>36 37 29 </target> 38 30 39 <target name="properties"> 40 <echo>Required Properties:</echo> 41 <echo>version the version string for the release</echo> 42 <echo/> 43 <echo>Optional Properties:</echo> 44 <echo>branch.path the branch of Greenstone3 to make a release of. Eg: tags/2.81. Default: trunk.</echo> 45 <echo>branch.revision the revision of Greenstone3 to make a release of. Eg: 18273. Default: HEAD.</echo> 46 <echo/> 47 </target> 31 <!-- target to show properties in rk3-build.properties --> 32 <target name="properties" depends="core-properties"/> 48 33 34 <!-- create the property set to be forwarded to greenstone3 --> 35 <propertyset id="forward.properties"> 36 <propertyref prefix="forward."/> 37 <mapper type="glob" from="forward.*" to="*"/> 38 <propertyref name="app.version"/> 39 <propertyref name="branch.path"/> 40 <propertyref name="branch.revision"/> 41 </propertyset> 49 42 50 43 </project> -
main/trunk/release-kits/kits/rk3/ant-scripts/compile.xml
r20335 r21630 3 3 4 4 <target name="compile"> 5 <antcall target="checkout-greenstone3"/> 5 6 <!-- checkout greenstone3 --> 7 <exec executable="svn"> 8 <arg value="checkout"/> 9 <arg value="${svn.root}/main/${branch.path}/greenstone3"/> 10 <arg value="compiled"/> 11 <arg value="-r"><arg value="${branch.revision}"/> 12 </exec> 13 14 <!-- run greenstone3's ant prepare --> 6 15 <ant dir="compiled" inheritAll="false"> 7 16 <target name="prepare"/> 8 17 <propertyset refid="forward.properties"/> 9 18 </ant> 10 <antcall target="greenstone3-set-version-numbers"> 11 <param name="greenstone3basedir" value="compiled"/> 12 </antcall> 13 <antcall target="gli-set-version-numbers"> 14 <param name="glibasedir" value="compiled/gli"/> 15 </antcall> 16 <antcall target="gsdl-set-version-numbers"> 17 <param name="gsdl.basedir" value="compiled/gs2build"/> 18 </antcall> 19 20 <!-- set all version numbers --> 21 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall> 22 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="compiled/gli"/></antcall> 23 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="compiled/gs2build"/></antcall> 24 25 <!-- run greenstone3's ant install and ant dist-tidy --> 19 26 <ant dir="compiled" inheritAll="false"> 20 27 <target name="install"/> … … 22 29 <propertyset refid="forward.properties"/> 23 30 </ant> 24 <antcall target="insert-xml-parser"/>25 <antcall target="insert-ant"/>26 <antcall target="insert-documented-examples"/>27 <antcall target="compile-uninstaller" />28 <antcall target="prepare-documentation"/>29 31 30 <!-- windows only --> 32 <!-- insert an xml parser --> 33 <copy todir="compiled/gs2build/perllib/cpan"> 34 <fileset dir="${rk.home}/shared/greenstone3" includes="XML-Parser/**/*"/> 35 </copy> 36 37 <!-- TODO: insert-ant --> 38 39 <!-- put the uninstaller in place --> 40 <antcall target="insert-and-compile-uninstaller"/> 41 42 <!-- (windows only) --> 31 43 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool> 32 <antcall target="insert-windows-perl"> 33 <param name="todir" value="compiled/gs2build/bin/windows"/> 34 </antcall> 35 <antcall target="insert-windows-icon"/> 44 <!-- insert perl --> 45 <unzip src="${rk.home}/shared/windows/perl.zip" dest="compiled/gs2build/bin/windows"/> 36 46 </if> 47 48 <!-- minify tomcat --> 49 <delete dir="compiled/packages/tomcat/webapps/docs"/> 50 <delete dir="compiled/packages/tomcat/webapps/examples"/> 51 52 <!-- tidy up gli to make it smaller --> 53 <antcall target="gli-tidy-for-dist"><param name="glibasedir" value="compiled/gli"/></antcall> 54 55 <!-- strip out .svn dirs --> 56 <antcall target="strip-svn-dirs"><param name="dir" value="compiled"/></antcall> 57 58 <!-- (linux only) --> 59 <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool> 60 <!-- grab imagemagick binaries --> 61 <delete dir="compiled/gs2build/bin/linux/imagemagick"/> 62 <exec executable="svn"> 63 <arg value="export"/> 64 <arg value="${svn.root}/main/${branch.path}/binaries/linux/imagemagick"/> 65 <arg value="compiled/gs2build/bin/linux/imagemagick"/> 66 </exec> 67 68 <!-- grab wv binaries --> 69 <delete dir="compiled/gs2build/bin/linux/wv"/> 70 <exec executable="svn"> 71 <arg value="export"/> 72 <arg value="${svn.root}/main/${branch.path}/binaries/linux/wv"/> 73 <arg value="compiled/gs2build/bin/linux/wv"/> 74 </exec> 75 <!-- (mac only) --> 76 <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool> 77 <!-- grab imagemagick binaries --> 78 <delete dir="compiled/gs2build/bin/darwin/imagemagick"/> 79 <exec executable="svn"> 80 <arg value="export"/> 81 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/imagemagick"/> 82 <arg value="compiled/gs2build/bin/darwin/imagemagick"/> 83 </exec> 84 85 <!-- grab ghostscript binaries --> 86 <delete dir="compiled/gs2build/bin/darwin/imagemagick"/> 87 <exec executable="svn"> 88 <arg value="export"/> 89 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/ghostscript"/> 90 <arg value="compiled/gs2build/bin/darwin/ghostscript"/> 91 </exec> 92 </if></else></if> 93 37 94 </target> 38 95 -
main/trunk/release-kits/kits/rk3/ant-scripts/create-components.xml
r21311 r21630 2 2 <project name="rk3-create-components"> 3 3 4 <import file="${basedir}/ distributions/web/resources/xml/components.xml"/>4 <import file="${basedir}/compiled/resources/xml/components.xml"/> 5 5 <import file="${rk.home}/core/ant-scripts/init.xml"/> 6 7 <!-- create components from the distributions folder -->8 6 9 7 <target name="create-components"> 10 8 11 < antcall target="prepare-component"><param name="component" value="core"/></antcall>12 <antcall target="c ompress-component"><param name="component" value="core"/></antcall>9 <!-- core --> 10 <antcall target="create-component"><param name="component" value="core"/></antcall> 13 11 14 < antcall target="prepare-component"><param name="component" value="tomcat"/></antcall>15 <antcall target="c ompress-component"><param name="component" value="tomcat"/></antcall>12 <!-- tomcat --> 13 <antcall target="create-component"><param name="component" value="tomcat"/></antcall> 16 14 17 < antcall target="prepare-component"><param name="component" value="imagemagick"/></antcall>18 <antcall target="c ompress-component"><param name="component" value="imagemagick"/></antcall>15 <!-- imageagick --> 16 <antcall target="create-component"><param name="component" value="imagemagick"/></antcall> 19 17 20 <!-- windows and mac only-->18 <!-- (windows and mac only) --> 21 19 <if><bool><or><equals arg1="${rk.os}" arg2="windows"/><equals arg1="${rk.os}" arg2="mac"/></or></bool> 22 < antcall target="prepare-component"><param name="component" value="ghostscript"/></antcall>23 <antcall target="c ompress-component"><param name="component" value="ghostscript"/></antcall>20 <!-- ghostscript --> 21 <antcall target="create-component"><param name="component" value="ghostscript"/></antcall> 24 22 </if> 25 23
Note:
See TracChangeset
for help on using the changeset viewer.