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

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

separating out cdrom code for linux and mac too

File size: 3.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-imagemagick-component" />
16 <antcall target="prepare-ghostscript-component" />
17 </target>
18
19 <target name="compress-components">
20 <antcall target="compress-core-component" />
21 <antcall target="compress-imagemagick-component" />
22 <antcall target="compress-ghostscript-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 imagemagick + ghostscript -->
47 <exclude name="bin/darwin/imagemagick"/>
48 <exclude name="bin/darwin/imagemagick/**/*"/>
49 <exclude name="bin/darwin/ghostscript"/>
50 <exclude name="bin/darwin/ghostscript/**/*"/>
51
52 </fileset>
53 </copy>
54 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
55 </target>
56
57 <target name="compress-core-component">
58 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
59 </target>
60
61 <!-- imagemagick -->
62 <target name="prepare-imagemagick-component">
63
64 <delete dir="components/tmp/imagemagick"/>
65 <mkdir dir="components/tmp/imagemagick"/>
66
67 <copy todir="components/tmp/imagemagick" overwrite="true">
68 <fileset dir="distributions/web/bin/darwin">
69 <include name="imagemagick/**/*"/>
70 </fileset>
71 </copy>
72
73 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
74 </target>
75
76 <target name="compress-imagemagick-component">
77 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
78 </target>
79
80 <!-- ghostscript -->
81 <target name="prepare-ghostscript-component">
82
83 <delete dir="components/tmp/ghostscript"/>
84 <mkdir dir="components/tmp/ghostscript"/>
85
86 <copy todir="components/tmp/ghostscript" overwrite="true">
87 <fileset dir="distributions/web/bin/darwin">
88 <include name="ghostscript/**/*"/>
89 </fileset>
90 </copy>
91
92 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
93 </target>
94
95 <target name="compress-ghostscript-component">
96 <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
97 </target>
98
99</project>
Note: See TracBrowser for help on using the repository browser.