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