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