[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 -->
|
---|
[17336] | 6 | <antcall target="export-greenstone3-gli" />
|
---|
| 7 | <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distribution/greenstone3" /></antcall>
|
---|
| 8 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli" /></antcall>
|
---|
[16748] | 9 | <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
|
---|
| 10 | <property name="app.version" value="${version}"/>
|
---|
| 11 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 12 | <property name="branch.revision" value="${branch.revision}"/>
|
---|
| 13 | </ant>
|
---|
| 14 | <ant target="create-distribution-2" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
|
---|
| 15 | <property name="app.version" value="${version}"/>
|
---|
| 16 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 17 | <property name="branch.revision" value="${branch.revision}"/>
|
---|
| 18 | </ant>
|
---|
| 19 | <ant target="create-distribution-3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
|
---|
| 20 | <property name="app.version" value="${version}"/>
|
---|
| 21 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 22 | <property name="branch.revision" value="${branch.revision}"/>
|
---|
| 23 | </ant>
|
---|
| 24 | <antcall target="copy-over-build-xml" />
|
---|
| 25 | <antcall target="insert-user-manual"/>
|
---|
| 26 | <antcall target="insert-compiled-binaries"/>
|
---|
[17336] | 27 | <antcall target="insert-icon"/>
|
---|
[17425] | 28 | <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk3-targets -->
|
---|
[16748] | 29 | <antcall target="rename-build-xml-for-transit"/>
|
---|
[15023] | 30 | </target>
|
---|
| 31 |
|
---|
[17336] | 32 | <target name="export-greenstone3-gli">
|
---|
[16748] | 33 | <mkdir dir="distribution"/>
|
---|
| 34 | <delete dir="distribution/greenstone3"/>
|
---|
| 35 | <svn>
|
---|
| 36 | <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/>
|
---|
[17336] | 37 | <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli" revision="${branch.revision}"/>
|
---|
[16748] | 38 | </svn>
|
---|
[15023] | 39 | </target>
|
---|
| 40 |
|
---|
| 41 | <target name="copy-over-build-xml">
|
---|
| 42 | <if><bool><istrue value="${execute}"/></bool>
|
---|
| 43 | <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
|
---|
| 44 | </if>
|
---|
| 45 | </target>
|
---|
| 46 |
|
---|
| 47 | <target name="insert-user-manual">
|
---|
[16748] | 48 | <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
|
---|
[15023] | 49 | </target>
|
---|
| 50 |
|
---|
| 51 | <target name="insert-compiled-binaries">
|
---|
[17419] | 52 |
|
---|
[16748] | 53 | <delete dir="distribution/greenstone3/lib/jni"/>
|
---|
| 54 | <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
|
---|
[15812] | 55 |
|
---|
[16748] | 56 | <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
|
---|
| 57 | <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
|
---|
[17604] | 58 |
|
---|
[16748] | 59 | <delete dir="distribution/greenstone3/gs2build/bin/java"/>
|
---|
| 60 | <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
|
---|
[17604] | 61 |
|
---|
| 62 | <copy todir="distribution/greenstone3/bin" file="greenstone3/bin/search4j.exe"/>
|
---|
[15812] | 63 | </target>
|
---|
[17336] | 64 |
|
---|
| 65 | <target name="insert-icon">
|
---|
| 66 | <copy
|
---|
| 67 | file="${wirk3.home}/greenstone3/icon/icon.ico"
|
---|
| 68 | tofile="distribution/greenstone3/resources/images/gs3.ico"/>
|
---|
| 69 | </target>
|
---|
[15023] | 70 |
|
---|
[15812] | 71 | <target name="rename-build-xml-for-transit">
|
---|
[16748] | 72 | <move
|
---|
| 73 | file="distribution/greenstone3/build.xml"
|
---|
| 74 | tofile="distribution/greenstone3/greenstone3-build.xml" />
|
---|
[15023] | 75 | </target>
|
---|
| 76 |
|
---|
| 77 | </project>
|
---|