source: release-kits/mark2/ant-scripts/create-components.xml@ 17660

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

standardized these files

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