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