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

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

fixes to lirk and mark

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