source: release-kits/lirk3/ant-scripts/create-distribution.xml@ 17898

Last change on this file since 17898 was 17898, checked in by oranfry, 15 years ago

Standardised names of directories used in release kits

  • gsdl and greenstone3 -> compiled
  • distribution and distributions -> distributions
  • greenstone3 and web -> web

And, expect more specifically named properties files, e.g., lirk3-build.properties, wirk2-build.properties

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