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

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

create a compressed zipfile of the sourcecode component, for download

File size: 4.0 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
6 <!-- 1st level -->
7 <target name="create-components">
8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
10 </target>
11
12 <!-- 2nd level -->
13 <target name="prepare-components">
14 <antcall target="prepare-core-component" />
15 <antcall target="prepare-sourcecode-component" />
16 <antcall target="prepare-imagemagick-component" />
17 <antcall target="prepare-sourcecode-core-component" />
18 </target>
19
20 <target name="compress-components">
21 <antcall target="compress-core-component" />
22 <antcall target="compress-sourcecode-component" />
23 <antcall target="compress-imagemagick-component" />
24 <antcall target="compress-sourcecode-core-component" />
25 </target>
26
27 <!-- 3rd level -->
28
29 <!-- core -->
30 <target name="prepare-core-component">
31
32 <delete dir="components/tmp/core"/>
33 <mkdir dir="components/tmp/core"/>
34
35 <copy todir="components/tmp/core" overwrite="true">
36 <fileset dir="distributions/web">
37 <include name="**/*"/>
38
39 <!-- exclude sourcecode + imagemagick -->
40 <exclude name="common-src"/>
41 <exclude name="common-src/**/*"/>
42 <exclude name="runtime-src"/>
43 <exclude name="runtime-src/**/*"/>
44 <exclude name="build-src"/>
45 <exclude name="build-src/**/*"/>
46 <exclude name="bin/linux/imagemagick"/>
47 <exclude name="bin/linux/imagemagick/**/*"/>
48
49 </fileset>
50 </copy>
51 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
52 </target>
53
54 <target name="compress-core-component">
55 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
56 </target>
57
58 <!-- sourcecode core -->
59 <target name="prepare-sourcecode-core-component">
60 <delete dir="components/tmp/sourcecode-core"/>
61 <mkdir dir="components/tmp/sourcecode-core"/>
62
63 <copy todir="components/tmp/sourcecode-core" overwrite="true">
64 <fileset dir="distributions/source">
65 <include name="macros/**/*"/>
66 <include name="images/**/*"/>
67 <include name="etc/**/*"/>
68 <include name="gli/**/*"/>
69 <include name="collect/**/*"/>
70 <include name="doc/**/*"/>
71 <include name="setup.bash"/>
72 </fileset>
73 </copy>
74 <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
75 </target>
76
77 <target name="compress-sourcecode-core-component">
78 <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
79 </target>
80
81 <!-- sourcecode -->
82 <target name="prepare-sourcecode-component">
83
84 <delete dir="components/tmp/sourcecode"/>
85 <mkdir dir="components/tmp/sourcecode"/>
86
87 <copy todir="components/tmp/sourcecode" overwrite="true">
88 <fileset dir="distributions/web">
89 <include name="common-src/**/*"/>
90 <include name="runtime-src/**/*"/>
91 <include name="build-src/**/*"/>
92 </fileset>
93 </copy>
94
95 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false"/>
96 <zip destfile="components/sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
97 </target>
98
99 <target name="compress-sourcecode-component">
100 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
101 </target>
102
103 <!-- imagemagick -->
104 <target name="prepare-imagemagick-component">
105
106 <delete dir="components/tmp/imagemagick"/>
107 <mkdir dir="components/tmp/imagemagick"/>
108
109 <copy todir="components/tmp/imagemagick" overwrite="true">
110 <fileset dir="distributions/web/bin/linux">
111 <include name="imagemagick/**/*"/>
112 </fileset>
113 </copy>
114
115 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
116 </target>
117
118 <target name="compress-imagemagick-component">
119 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
120 </target>
121
122</project>
Note: See TracBrowser for help on using the repository browser.