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

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

readmes will now make it into distribution, also fixed mark2 to produce cdrom components, and removed unused code

File size: 4.7 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 <antcall target="produce-cd-components"/>
11 </target>
12
13 <!-- 2nd level -->
14 <target name="prepare-components">
15 <antcall target="prepare-core-component" />
16 <antcall target="prepare-imagemagick-component" />
17 <antcall target="prepare-ghostscript-component" />
18 </target>
19
20 <target name="compress-components">
21 <antcall target="compress-core-component" />
22 <antcall target="compress-imagemagick-component" />
23 <antcall target="compress-ghostscript-component" />
24 </target>
25
26 <!-- 3rd level -->
27 <target name="create-core-component">
28 <antcall target="prepare-core-component" />
29 <antcall target="compress-core-component" />
30 </target>
31
32 <target name="create-sourcecode-component">
33 <antcall target="prepare-sourcecode-component" />
34 <antcall target="compress-sourcecode-component" />
35 </target>
36
37 <!-- core -->
38 <target name="prepare-core-component">
39
40 <delete dir="components/tmp/core"/>
41 <mkdir dir="components/tmp/core"/>
42
43 <copy todir="components/tmp/core" overwrite="true">
44 <fileset dir="distributions/web">
45 <include name="**/*"/>
46
47 <!-- exclude imagemagick + ghostscript -->
48 <exclude name="bin/darwin/imagemagick"/>
49 <exclude name="bin/darwin/imagemagick/**/*"/>
50 <exclude name="bin/darwin/ghostscript"/>
51 <exclude name="bin/darwin/ghostscript/**/*"/>
52
53 </fileset>
54 </copy>
55 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
56 </target>
57
58 <target name="compress-core-component">
59 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
60 </target>
61
62 <!-- imagemagick -->
63 <target name="prepare-imagemagick-component">
64
65 <delete dir="components/tmp/imagemagick"/>
66 <mkdir dir="components/tmp/imagemagick"/>
67
68 <copy todir="components/tmp/imagemagick" overwrite="true">
69 <fileset dir="distributions/web/bin/darwin">
70 <include name="imagemagick/**/*"/>
71 </fileset>
72 </copy>
73
74 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
75 </target>
76
77 <target name="compress-imagemagick-component">
78 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
79 </target>
80
81 <!-- ghostscript -->
82 <target name="prepare-ghostscript-component">
83
84 <delete dir="components/tmp/ghostscript"/>
85 <mkdir dir="components/tmp/ghostscript"/>
86
87 <copy todir="components/tmp/ghostscript" overwrite="true">
88 <fileset dir="distributions/web/bin/darwin">
89 <include name="ghostscript/**/*"/>
90 </fileset>
91 </copy>
92
93 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
94 </target>
95
96 <target name="compress-ghostscript-component">
97 <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
98 </target>
99
100 <!--
101 cd components
102 produce components for cdrom distributions, to be picked up and used by cdrk2 release kit
103 split components into mac only files (mac) and general files (all)
104 -->
105 <target name="produce-cd-components">
106 <delete dir="components/tmp/cdrom"/>
107 <mkdir dir="components/tmp/cdrom"/>
108
109 <!-- core -->
110 <mkdir dir="components/tmp/cdrom/core/all"/>
111 <mkdir dir="components/tmp/cdrom/core/mac"/>
112 <copy todir="components/tmp/cdrom/core/all" overwrite="true">
113 <fileset dir="components/tmp/core"/>
114 </copy>
115 <move todir="components/tmp/cdrom/core/mac" overwrite="true">
116 <fileset dir="components/tmp/cdrom/core/all">
117 <include name="bin/darwin"/>
118 <include name="bin/darwin/**/*"/>
119 <include name="bin/windows"/>
120 <include name="bin/windows/**/*"/>
121 <include name="apache-httpd/darwin"/>
122 <include name="apache-httpd/darwin/**/*"/>
123 <include name="*.sh"/>
124 <include name="*.csh"/>
125 <include name="*.bash"/>
126 </fileset>
127 </move>
128
129 <!-- imagemagick (completely mac specific) -->
130 <mkdir dir="components/tmp/cdrom/imagemagick/mac"/>
131 <copy todir="components/tmp/cdrom/imagemagick/mac" overwrite="true">
132 <fileset dir="components/tmp/imagemagick"/>
133 </copy>
134
135 <!-- ghostscript (completely mac specific) -->
136 <mkdir dir="components/tmp/cdrom/ghostscript/mac"/>
137 <copy todir="components/tmp/cdrom/ghostscript/mac" overwrite="true">
138 <fileset dir="components/tmp/ghostscript"/>
139 </copy>
140
141 <!-- archive the cd components -->
142 <tar destfile="products/cdrom-components-${version}-mac.tar.gz" basedir="components/tmp/cdrom" compression="gzip"/>
143
144 </target>
145
146
147</project>
Note: See TracBrowser for help on using the repository browser.