source: release-kits/wirk2/ant-scripts/create-components.xml@ 17437

Last change on this file since 17437 was 17437, checked in by oranfry, 16 years ago

changes to the way binaries are stored in the cgi-bin and bin/(os) directories

File size: 4.4 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk2-create-components" default="create-components">
3
4 <!-- create components from the distribution folder -->
5 <target name="create-components">
6 <antcall target="create-core-component" />
7 <antcall target="create-imagemagick-component" />
8 <antcall target="create-ghostscript-component" />
9 <antcall target="create-sourcecode-component" />
10 </target>
11
12
13 <target name="create-core-component">
14 <antcall target="prepare-core-component" />
15 <antcall target="compress-core-component" />
16 </target>
17
18 <target name="create-imagemagick-component">
19 <antcall target="prepare-imagemagick-component" />
20 <antcall target="compress-imagemagick-component" />
21 </target>
22
23
24 <target name="create-ghostscript-component">
25 <antcall target="prepare-ghostscript-component" />
26 <antcall target="compress-ghostscript-component" />
27 </target>
28
29
30 <target name="create-sourcecode-component">
31 <antcall target="prepare-sourcecode-component" />
32 <antcall target="compress-sourcecode-component" />
33 </target>
34
35
36 <target name="prepare-core-component">
37 <!-- delete old stuff to create new components -->
38 <delete dir="components/tmp/core" quiet="true"/>
39 <mkdir dir="components/tmp/core"/>
40
41 <copy todir="components/tmp/core" overwrite="true">
42 <fileset dir="distributions/web">
43 <include name="**/*"/>
44
45 <!-- exclude imagemagick -->
46 <exclude name="bin/windows/imagemagick"/>
47
48 <!-- exclude ghostscript -->
49 <exclude name="bin/windows/ghostscript"/>
50
51 <!-- exclude sourcecode -->
52 <exclude name="common-src"/>
53 <exclude name="runtime-src"/>
54 <exclude name="build-src"/>
55
56 </fileset>
57 </copy>
58
59 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
60 </target>
61
62
63 <target name="compress-core-component">
64 <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
65 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
66 </target>
67
68
69
70 <target name="prepare-imagemagick-component">
71 <delete dir="components/tmp/imagemagick" quiet="true"/>
72 <mkdir dir="components/tmp/imagemagick"/>
73 <copy todir="components/tmp/imagemagick" overwrite="true">
74 <fileset dir="distributions/web/bin/windows/">
75 <include name="imagemagick/**/*"/>
76 </fileset>
77 </copy>
78
79 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
80 </target>
81
82 <target name="compress-imagemagick-component">
83 <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
84 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
85 </target>
86
87
88
89 <target name="prepare-ghostscript-component">
90 <delete dir="components/tmp/ghostscript" quiet="true"/>
91 <mkdir dir="components/tmp/ghostscript"/>
92 <copy todir="components/tmp/ghostscript" overwrite="true">
93 <fileset dir="distributions/web/bin/windows/">
94 <include name="ghostscript/**/*"/>
95 </fileset>
96 </copy>
97
98 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
99 </target>
100
101 <target name="compress-ghostscript-component">
102 <!-- <sevenzip task="encode" input="${basedir}/components/ghostscript.comp" output="${basedir}/components/ghostscript.lzma" dictionnary="26"/> -->
103 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
104 </target>
105
106
107
108 <target name="prepare-sourcecode-component">
109 <delete dir="components/tmp/sourcecode" quiet="true"/>
110 <mkdir dir="components/tmp/sourcecode"/>
111 <copy todir="components/tmp/sourcecode" overwrite="true">
112 <fileset dir="distributions/web">
113 <include name="common-src/**/*"/>
114 <include name="runtime-src/**/*"/>
115 <include name="build-src/**/*"/>
116 </fileset>
117 </copy>
118
119 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
120 </target>
121
122 <target name="compress-sourcecode-component">
123 <!-- <sevenzip task="encode" input="${basedir}/components/sourcecode.comp" output="${basedir}/components/sourcecode.lzma" dictionnary="26"/> -->
124 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
125 </target>
126
127
128</project>
Note: See TracBrowser for help on using the repository browser.