[15023] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="wirk3-create-distribution" default="create-distribution">
|
---|
| 3 |
|
---|
| 4 | <target name="create-distribution">
|
---|
| 5 | <!-- create distribution -->
|
---|
[16748] | 6 | <antcall target="export-greenstone3" />
|
---|
| 7 | <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
|
---|
| 8 | <property name="app.version" value="${version}"/>
|
---|
| 9 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 10 | <property name="branch.revision" value="${branch.revision}"/>
|
---|
| 11 | </ant>
|
---|
| 12 | <ant target="create-distribution-2" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
|
---|
| 13 | <property name="app.version" value="${version}"/>
|
---|
| 14 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 15 | <property name="branch.revision" value="${branch.revision}"/>
|
---|
| 16 | </ant>
|
---|
| 17 | <ant target="create-distribution-3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
|
---|
| 18 | <property name="app.version" value="${version}"/>
|
---|
| 19 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 20 | <property name="branch.revision" value="${branch.revision}"/>
|
---|
| 21 | </ant>
|
---|
[16813] | 22 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli" /></antcall>
|
---|
[16748] | 23 | <antcall target="copy-over-build-xml" />
|
---|
| 24 | <antcall target="insert-user-manual"/>
|
---|
| 25 | <antcall target="insert-compiled-binaries"/>
|
---|
[17257] | 26 | <antcall target="insert-uninstaller"/> <!-- from rk3-targets -->
|
---|
[16748] | 27 | <antcall target="rename-build-xml-for-transit"/>
|
---|
[15023] | 28 | </target>
|
---|
| 29 |
|
---|
| 30 | <target name="export-greenstone3">
|
---|
[16748] | 31 | <mkdir dir="distribution"/>
|
---|
| 32 | <delete dir="distribution/greenstone3"/>
|
---|
| 33 | <svn>
|
---|
| 34 | <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/>
|
---|
| 35 | </svn>
|
---|
[15023] | 36 | </target>
|
---|
| 37 |
|
---|
| 38 | <target name="dist-set-version-number-property">
|
---|
[16748] | 39 | <rsr
|
---|
| 40 | file="distribution/greenstone3/resources/java/global.properties.in"
|
---|
| 41 | pattern="(.*)@gsdl3version@(.*)"
|
---|
| 42 | replacement="$1${version}$2" />
|
---|
[15023] | 43 | </target>
|
---|
| 44 |
|
---|
| 45 | <target name="copy-over-build-xml">
|
---|
| 46 | <if><bool><istrue value="${execute}"/></bool>
|
---|
| 47 | <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
|
---|
| 48 | </if>
|
---|
| 49 | </target>
|
---|
| 50 |
|
---|
| 51 | <target name="insert-user-manual">
|
---|
[16748] | 52 | <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
|
---|
[15023] | 53 | </target>
|
---|
| 54 |
|
---|
| 55 | <target name="insert-compiled-binaries">
|
---|
[16748] | 56 | <delete dir="distribution/greenstone3/lib/jni"/>
|
---|
| 57 | <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
|
---|
[15812] | 58 |
|
---|
[16748] | 59 | <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
|
---|
| 60 | <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
|
---|
| 61 |
|
---|
| 62 | <delete dir="distribution/greenstone3/gs2build/bin/java"/>
|
---|
| 63 | <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
|
---|
[15812] | 64 | </target>
|
---|
[15023] | 65 |
|
---|
[15812] | 66 | <target name="rename-build-xml-for-transit">
|
---|
[16748] | 67 | <move
|
---|
| 68 | file="distribution/greenstone3/build.xml"
|
---|
| 69 | tofile="distribution/greenstone3/greenstone3-build.xml" />
|
---|
[15023] | 70 | </target>
|
---|
| 71 |
|
---|
| 72 | </project>
|
---|