[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 -->
|
---|
[17345] | 6 | <antcall target="export-greenstone3-gli" />
|
---|
| 7 | <antcall target="greenstone3-set-version-numbers">
|
---|
| 8 | <param name="greenstone3basedir" value="${basedir}/distribution/greenstone3"/>
|
---|
| 9 | </antcall>
|
---|
[16736] | 10 | <antcall target="gli-set-version-numbers">
|
---|
| 11 | <param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/>
|
---|
| 12 | </antcall>
|
---|
| 13 |
|
---|
| 14 | <!-- create distributions 1, 2 and 3 -->
|
---|
| 15 | <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" inheritAll="false">
|
---|
| 16 | <property name="app.version" value="${version}"/>
|
---|
| 17 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 18 | </ant>
|
---|
| 19 |
|
---|
| 20 | <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false">
|
---|
| 21 | <property name="app.version" value="${version}"/>
|
---|
| 22 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 23 | </ant>
|
---|
| 24 |
|
---|
| 25 | <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritAll="false">
|
---|
| 26 | <property name="app.version" value="${version}"/>
|
---|
| 27 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 28 | </ant>
|
---|
| 29 |
|
---|
[16684] | 30 | <antcall target="copy-over-build-xml" />
|
---|
| 31 | <antcall target="insert-user-manual"/>
|
---|
| 32 | <antcall target="insert-compiled-binaries"/>
|
---|
[17457] | 33 | <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk3-targets -->
|
---|
[16684] | 34 | <antcall target="rename-build-xml-for-transit"/>
|
---|
[17347] | 35 | <antcall target="strip-svn-dirs"><param name="dir" value="distribution/greenstone3"/></antcall> <!-- from init -->
|
---|
[14982] | 36 | </target>
|
---|
| 37 |
|
---|
[17345] | 38 | <target name="export-greenstone3-gli">
|
---|
[16684] | 39 | <mkdir dir="distribution"/>
|
---|
| 40 | <delete dir="distribution/greenstone3"/>
|
---|
| 41 | <svn>
|
---|
| 42 | <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3"/>
|
---|
| 43 | <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli"/>
|
---|
| 44 | </svn>
|
---|
[14982] | 45 | </target>
|
---|
| 46 |
|
---|
| 47 | <target name="copy-over-build-xml">
|
---|
[16684] | 48 | <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
|
---|
[14982] | 49 | </target>
|
---|
| 50 |
|
---|
| 51 | <target name="insert-user-manual">
|
---|
[16684] | 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">
|
---|
[16684] | 56 | <delete dir="distribution/greenstone3/lib/jni"/>
|
---|
| 57 | <exec executable="cp"><arg line="-r greenstone3/lib/jni distribution/greenstone3/lib"/></exec>
|
---|
[14982] | 58 |
|
---|
[16684] | 59 | <delete dir="distribution/greenstone3/gs2build/bin/linux"/>
|
---|
| 60 | <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/linux distribution/greenstone3/gs2build/bin"/></exec>
|
---|
[17268] | 61 | <exec dir="${basedir}" executable="cp"><arg line="greenstone3/bin/search4j distribution/greenstone3/bin"/></exec>
|
---|
[14982] | 62 |
|
---|
[16684] | 63 | <delete dir="distribution/greenstone3/gs2build/bin/java"/>
|
---|
| 64 | <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/java distribution/greenstone3/gs2build/bin"/></exec>
|
---|
| 65 | </target>
|
---|
[14982] | 66 |
|
---|
[16684] | 67 | <target name="rename-build-xml-for-transit">
|
---|
| 68 | <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/>
|
---|
[14982] | 69 | </target>
|
---|
| 70 |
|
---|
| 71 | </project>
|
---|