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