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

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

added the imagemagick component

File size: 2.8 KB
Line 
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 -->
5 <target name="create-components">
6 <antcall target="prepare-components" />
7 <antcall target="compress-components" />
8 </target>
9
10 <target name="prepare-components">
11 <antcall target="prepare-core-component" />
12 <antcall target="prepare-sourcecode-component" />
13 <antcall target="prepare-imagemagick-component" />
14
15 </target>
16
17 <target name="compress-components">
18 <antcall target="compress-core-component" />
19 <antcall target="compress-sourcecode-component" />
20 <antcall target="compress-imagemagick-component" />
21 </target>
22
23 <target name="prepare-core-component">
24
25 <delete dir="components/tmp/core"/>
26 <mkdir dir="components/tmp/core"/>
27
28 <copy todir="components/tmp/core" overwrite="true">
29 <fileset dir="distributions/web">
30 <include name="**/*"/>
31
32 <!-- sourcecode + imagemagick -->
33 <exclude name="common-src"/>
34 <exclude name="common-src/**/*"/>
35
36 <exclude name="runtime-src"/>
37 <exclude name="runtime-src/**/*"/>
38
39 <exclude name="build-src"/>
40 <exclude name="build-src/**/*"/>
41
42 <exclude name="bin/linux/imagemagick"/>
43 <exclude name="bin/linux/imagemagick/**/*"/>
44
45 </fileset>
46 </copy>
47 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
48 </target>
49
50 <target name="compress-core-component">
51 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
52 </target>
53
54 <target name="prepare-sourcecode-component">
55
56 <delete dir="components/tmp/sourcecode"/>
57 <mkdir dir="components/tmp/sourcecode"/>
58
59 <copy todir="components/tmp/sourcecode" overwrite="true">
60 <fileset dir="distributions/web">
61 <include name="common-src/**/*"/>
62 <include name="runtime-src/**/*"/>
63 <include name="build-src/**/*"/>
64 </fileset>
65 </copy>
66
67 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" includes="**/*"/>
68 </target>
69
70 <target name="compress-sourcecode-component">
71 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
72 </target>
73
74 <target name="prepare-imagemagick-component">
75
76 <delete dir="components/tmp/imagemagick"/>
77 <mkdir dir="components/tmp/imagemagick"/>
78
79 <copy todir="components/tmp/imagemagick" overwrite="true">
80 <fileset dir="distributions/web/bin/linux">
81 <include name="imagemagick/**/*"/>
82 </fileset>
83 </copy>
84
85 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
86 </target>
87
88 <target name="compress-imagemagick-component">
89 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
90 </target>
91
92</project>
Note: See TracBrowser for help on using the repository browser.