Changeset 16684 for release-kits/lirk3/ant-scripts/create-distribution.xml
- Timestamp:
- 2008-08-08T13:07:16+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk3/ant-scripts/create-distribution.xml
r16269 r16684 2 2 <project name="lirk3-create-distribution" default="create-distribution"> 3 3 4 5 4 <target name="create-distribution"> 6 7 5 <!-- create distribution --> 8 <a ddressedcall target="export-greenstone3" />9 <a ddressedcall target="dist-set-version-number-property" />10 <a ddressedcall target="dist-set-gli-version" />11 <a ddressedcall target="create-distributions-1" />12 <a ddressedcall target="create-distributions-2" />13 <a ddressedcall target="create-distributions-3" />14 <a ddressedcall target="copy-over-build-xml" />15 <a ddressedcall target="insert-user-manual"/>16 <a ddressedcall target="insert-compiled-binaries"/>17 6 <antcall target="export-greenstone3" /> 7 <antcall target="dist-set-version-number-property" /> 8 <antcall target="dist-set-gli-version" /> 9 <antcall target="create-distributions-1" /> 10 <antcall target="create-distributions-2" /> 11 <antcall target="create-distributions-3" /> 12 <antcall target="copy-over-build-xml" /> 13 <antcall target="insert-user-manual"/> 14 <antcall target="insert-compiled-binaries"/> 15 <antcall target="rename-build-xml-for-transit"/> 18 16 </target> 19 17 20 18 <target name="export-greenstone3"> 21 <if><bool><istrue value="${execute}"/></bool> 22 <mkdir dir="distribution"/> 23 <delete dir="distribution/greenstone3"/> 24 <svn> 25 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3"/> 26 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli"/> 27 </svn> 28 </if> 19 <mkdir dir="distribution"/> 20 <delete dir="distribution/greenstone3"/> 21 <svn> 22 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3"/> 23 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli"/> 24 </svn> 29 25 </target> 30 26 31 27 <target name="dist-set-version-number-property"> 32 <if><bool><istrue value="${execute}"/></bool> 33 <rsr file="distribution/greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" /> 34 </if> 28 <rsr file="distribution/greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" /> 35 29 </target> 36 30 37 31 <target name="dist-set-gli-version"> 38 <if><bool><istrue value="${execute}"/></bool> 39 <ant antfile="${lirk3.home}/ant-scripts/shared-ant-scripts/operations-on-gli.xml" dir="${basedir}/distribution/greenstone3/gli" target="set-version-numbers"/> 40 </if> 32 <ant antfile="${lirk3.home}/ant-scripts/shared-ant-scripts/operations-on-gli.xml" dir="${basedir}/distribution/greenstone3/gli" target="set-version-numbers"/> 41 33 </target> 42 34 43 35 44 36 <target name="create-distributions-1"> 45 <if><bool><istrue value="${execute}"/></bool> 46 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" inheritAll="false"> 47 <property name="app.version" value="${version}"/> 48 <property name="branch.path" value="${branch.path}"/> 49 </ant> 50 </if> 37 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" inheritAll="false"> 38 <property name="app.version" value="${version}"/> 39 <property name="branch.path" value="${branch.path}"/> 40 </ant> 51 41 </target> 52 42 53 43 <target name="create-distributions-2"> 54 <if><bool><istrue value="${execute}"/></bool> 55 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false"> 56 <property name="app.version" value="${version}"/> 57 <property name="branch.path" value="${branch.path}"/> 58 </ant> 59 </if> 44 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false"> 45 <property name="app.version" value="${version}"/> 46 <property name="branch.path" value="${branch.path}"/> 47 </ant> 60 48 </target> 61 49 62 50 <target name="create-distributions-3"> 63 <if><bool><istrue value="${execute}"/></bool> 64 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritall="false"> 65 <property name="app.version" value="${version}"/> 66 <property name="branch.path" value="${branch.path}"/> 67 </ant> 68 </if> 51 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritall="false"> 52 <property name="app.version" value="${version}"/> 53 <property name="branch.path" value="${branch.path}"/> 54 </ant> 69 55 </target> 70 56 71 57 <target name="copy-over-build-xml"> 72 <if><bool><istrue value="${execute}"/></bool> 73 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/> 74 </if> 58 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/> 75 59 </target> 76 60 77 61 <target name="insert-user-manual"> 78 <if><bool><istrue value="${execute}"/></bool> 79 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/> 80 </if> 62 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/> 81 63 </target> 82 64 83 65 <target name="insert-compiled-binaries"> 84 <if><bool><istrue value="${execute}"/></bool> 66 <delete dir="distribution/greenstone3/lib/jni"/> 67 <exec executable="cp"><arg line="-r greenstone3/lib/jni distribution/greenstone3/lib"/></exec> 85 68 86 <delete dir="distribution/greenstone3/lib/jni"/>87 <exec executable="cp"><arg line="-r greenstone3/lib/jni distribution/greenstone3/lib"/></exec>69 <delete dir="distribution/greenstone3/gs2build/bin/linux"/> 70 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/linux distribution/greenstone3/gs2build/bin"/></exec> 88 71 89 <delete dir="distribution/greenstone3/gs2build/bin/linux"/> 90 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/linux distribution/greenstone3/gs2build/bin"/></exec> 91 92 <delete dir="distribution/greenstone3/gs2build/bin/java"/> 93 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/java distribution/greenstone3/gs2build/bin"/></exec> 94 95 </if> 72 <delete dir="distribution/greenstone3/gs2build/bin/java"/> 73 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/java distribution/greenstone3/gs2build/bin"/></exec> 96 74 </target> 97 75 98 99 76 <target name="rename-build-xml-for-transit"> 77 <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/> 78 </target> 100 79 101 80 </project>
Note:
See TracChangeset
for help on using the changeset viewer.