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

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

distribution and component changes for source releases in lirk2

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