source: release-kits/lirk2/ant-scripts/create-components.xml@ 18007

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

exclude all readmes but the english one from binary installer

File size: 3.9 KB
RevLine 
[17396]1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk2-create-components" default="create-components">
3
4 <!-- create components from the distribution folder -->
[17649]5
6 <!-- 1st level -->
[17396]7 <target name="create-components">
[17644]8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
[17396]10 </target>
[17644]11
[17649]12 <!-- 2nd level -->
[17644]13 <target name="prepare-components">
[17396]14 <antcall target="prepare-core-component" />
[17786]15 <antcall target="prepare-imagemagick-component" />
16
[17644]17 <antcall target="prepare-sourcecode-component" />
[17786]18
[17396]19 </target>
20
[17644]21 <target name="compress-components">
22 <antcall target="compress-core-component" />
23 <antcall target="compress-imagemagick-component" />
[17786]24
[17956]25 <antcall target="compress-zipped-binary-release" /> <!-- from init -->
[17396]26 </target>
[17649]27
28 <!-- 3rd level -->
[17659]29
30 <!-- core -->
[17396]31 <target name="prepare-core-component">
[17450]32
33 <delete dir="components/tmp/core"/>
[17396]34 <mkdir dir="components/tmp/core"/>
[17450]35
[17396]36 <copy todir="components/tmp/core" overwrite="true">
37 <fileset dir="distributions/web">
[17422]38 <include name="**/*"/>
39
[18005]40 <!-- exclude sourcecode + imagemagick + build files -->
[17644]41 <exclude name="common-src"/>
[17422]42 <exclude name="common-src/**/*"/>
[17644]43 <exclude name="runtime-src"/>
[17422]44 <exclude name="runtime-src/**/*"/>
[17644]45 <exclude name="build-src"/>
[17422]46 <exclude name="build-src/**/*"/>
[17644]47 <exclude name="bin/linux/imagemagick"/>
48 <exclude name="bin/linux/imagemagick/**/*"/>
[17422]49
[18005]50 <exclude name="acconfig.h"/>
51 <exclude name="aclocal.m4"/>
52 <exclude name="config.sub"/>
53 <exclude name="configtest.pl"/>
54 <exclude name="configure"/>
55 <exclude name="configure.in"/>
56 <exclude name="install-sh"/>
57 <exclude name="Makefile.in"/>
58 <exclude name="micotest.cpp"/>
[18007]59
60 <exclude name="README*.txt"/>
61 <include name="READMEen.txt"/>
62
[17396]63 </fileset>
64 </copy>
65 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
66 </target>
67
68 <target name="compress-core-component">
69 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
70 </target>
[17659]71
72 <!-- sourcecode -->
[17396]73 <target name="prepare-sourcecode-component">
[17450]74
75 <delete dir="components/tmp/sourcecode"/>
[17396]76 <mkdir dir="components/tmp/sourcecode"/>
[17450]77
[18005]78 <exec dir="${basedir}" executable="cp">
79 <arg line="-r distributions/web/common-src distributions/web/build-src distributions/web/runtime-src components/tmp/sourcecode"/>
80 </exec>
81 <exec dir="distributions/web" executable="cp">
82 <arg line="acconfig.h aclocal.m4 config.guess config.sub configtest.pl configure configure.in install-sh Makefile.in micotest.cpp ${basedir}/components/tmp/sourcecode"/>
83 </exec>
[17396]84
[17956]85 <mkdir dir="products"/>
[18001]86 <!-- create a script to create the tar -->
87 <echo output="create-sourcecode-component.sh">
88 tar -czf ../../../products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz *
89 </echo>
90 <chmod perm="+x" file="create-sourcecode-component.sh"/>
91
92 <!-- run it -->
93 <exec dir="components/tmp/sourcecode" executable="/bin/bash">
94 <arg line="${basedir}/create-sourcecode-component.sh"/>
[17981]95 </exec>
[17956]96
[18001]97 <!-- remove it -->
98 <delete file="create-sourcecode-component.sh"/>
99
[17396]100 </target>
101
102 <target name="compress-sourcecode-component">
103 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
104 </target>
105
[17659]106 <!-- imagemagick -->
[17644]107 <target name="prepare-imagemagick-component">
108
109 <delete dir="components/tmp/imagemagick"/>
110 <mkdir dir="components/tmp/imagemagick"/>
111
112 <copy todir="components/tmp/imagemagick" overwrite="true">
113 <fileset dir="distributions/web/bin/linux">
114 <include name="imagemagick/**/*"/>
115 </fileset>
116 </copy>
117
118 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
119 </target>
120
121 <target name="compress-imagemagick-component">
122 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
123 </target>
[17649]124
[17396]125</project>
Note: See TracBrowser for help on using the repository browser.