[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="lirk3-create-distribution" default="create-distribution">
|
---|
| 3 |
|
---|
| 4 | <target name="create-distribution">
|
---|
[17652] | 5 |
|
---|
[14982] | 6 | <!-- create distribution -->
|
---|
[17345] | 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"/>
|
---|
[17786] | 11 | <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk3-targets -->
|
---|
[16736] | 12 |
|
---|
[17652] | 13 |
|
---|
[17898] | 14 | <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" target="create-distribution-1" inheritAll="false">
|
---|
[16736] | 15 | <property name="app.version" value="${version}"/>
|
---|
| 16 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 17 | </ant>
|
---|
[17898] | 18 | <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" target="create-distribution-2" inheritAll="false">
|
---|
[16736] | 19 | <property name="app.version" value="${version}"/>
|
---|
| 20 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 21 | </ant>
|
---|
[17898] | 22 | <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" target="create-distribution-3" inheritAll="false">
|
---|
[16736] | 23 | <property name="app.version" value="${version}"/>
|
---|
| 24 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 25 | </ant>
|
---|
[16684] | 26 | <antcall target="copy-over-build-xml" />
|
---|
| 27 | <antcall target="insert-compiled-binaries"/>
|
---|
[17645] | 28 | <antcall target="export-imagemagick-linux-binaries" />
|
---|
[17652] | 29 |
|
---|
[17898] | 30 | <antcall target="strip-svn-dirs"><param name="dir" value="distributions"/></antcall> <!-- from init -->
|
---|
[17652] | 31 |
|
---|
[14982] | 32 | </target>
|
---|
| 33 |
|
---|
[17345] | 34 | <target name="export-greenstone3-gli">
|
---|
[17898] | 35 | <mkdir dir="distributions"/>
|
---|
| 36 | <delete dir="distributions/web"/>
|
---|
[16684] | 37 | <svn>
|
---|
[17898] | 38 | <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web"/>
|
---|
| 39 | <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/>
|
---|
[16684] | 40 | </svn>
|
---|
[14982] | 41 | </target>
|
---|
[17645] | 42 |
|
---|
| 43 | <target name="export-imagemagick-linux-binaries">
|
---|
[17898] | 44 | <delete dir="distributions/web/gs2build/bin/linux/imagemagick"/>
|
---|
[17645] | 45 | <svn>
|
---|
[17898] | 46 | <export srcurl="${svn.root}/other-projects/trunk/linux-binaries/imagemagick" destPath="distributions/web/gs2build/bin/linux/imagemagick"/>
|
---|
[17645] | 47 | </svn>
|
---|
| 48 | </target>
|
---|
[14982] | 49 |
|
---|
| 50 | <target name="copy-over-build-xml">
|
---|
[17898] | 51 | <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/>
|
---|
[14982] | 52 | </target>
|
---|
| 53 |
|
---|
| 54 | <target name="insert-user-manual">
|
---|
[17898] | 55 | <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/>
|
---|
[14982] | 56 | </target>
|
---|
| 57 |
|
---|
| 58 | <target name="insert-compiled-binaries">
|
---|
[17898] | 59 | <delete dir="distributions/web/lib/jni"/>
|
---|
| 60 | <exec executable="cp"><arg line="-r compiled/lib/jni distributions/web/lib"/></exec>
|
---|
[14982] | 61 |
|
---|
[17898] | 62 | <delete dir="distributions/web/gs2build/bin/linux"/>
|
---|
| 63 | <exec executable="cp"><arg line="-r compiled/gs2build/bin/linux distributions/web/gs2build/bin"/></exec>
|
---|
[14982] | 64 |
|
---|
[17898] | 65 | <delete dir="distributions/web/gs2build/bin/java"/>
|
---|
| 66 | <exec executable="cp"><arg line="-r compiled/gs2build/bin/java distributions/web/gs2build/bin"/></exec>
|
---|
[17816] | 67 |
|
---|
[17898] | 68 | <exec executable="cp"><arg line="compiled/bin/search4j distributions/web/bin"/></exec>
|
---|
[17816] | 69 |
|
---|
[16684] | 70 | </target>
|
---|
[14982] | 71 |
|
---|
| 72 | </project>
|
---|