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

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

for windows, going back to the commandline tool method for compressing and extracting lzma

File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-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"/>
39 <mkdir dir="components"/>
40 <mkdir dir="components/tmp"/>
41
42 <copy todir="components/tmp/core" overwrite="true">
43 <fileset dir="distributions/web">
44 <include name="gli/**/*"/>
45 <include name="bin/**/*"/>
46
47 <exclude name="bin/windows/imagemagick/**/*"/>
48 <exclude name="bin/windows/ghostscript/**/*"/>
49
50 <include name="cgi-bin/**/*"/>
51 <include name="etc/**/*"/>
52 <include name="mappings/**/*"/>
53 <include name="images/**/*"/>
54 <include name="perllib/**/*"/>
55 <include name="indexers/**/*"/>
56 <include name="macros/**/*"/>
57 <include name="collect/**/*"/>
58
59 <include name="LICENSE.txt"/>
60 <include name="READMEar.txt"/>
61 <include name="READMEes.txt"/>
62 <include name="READMEen.txt"/>
63 <include name="READMEfr.txt"/>
64 <include name="READMEru.txt"/>
65 <include name="setup.bat"/>
66 <include name="server.exe"/>
67 <include name="Uninstall.jar"/>
68 <include name="gsdlsite.cfg"/>
69 </fileset>
70 </copy>
71
72 <!-- do some cleanup -->
73 <delete dir="components/tmp/core/bin/windows/imagemagick"/>
74 <delete dir="components/tmp/core/bin/windows/ghostscript"/>
75
76 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
77 </target>
78
79
80 <target name="compress-core-component">
81 <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
82 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
83 </target>
84
85
86
87 <target name="prepare-imagemagick-component">
88 <copy todir="components/tmp/imagemagick" overwrite="true">
89 <fileset dir="distributions/web/bin/windows/">
90 <include name="imagemagick/**/*"/>
91 </fileset>
92 </copy>
93
94 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
95 </target>
96
97 <target name="compress-imagemagick-component">
98 <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
99 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
100 </target>
101
102
103
104 <target name="prepare-ghostscript-component">
105 <copy todir="components/tmp/ghostscript" overwrite="true">
106 <fileset dir="distributions/web/bin/windows/">
107 <include name="ghostscript/**/*"/>
108 </fileset>
109 </copy>
110
111 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
112 </target>
113
114 <target name="compress-ghostscript-component">
115 <!-- <sevenzip task="encode" input="${basedir}/components/ghostscript.comp" output="${basedir}/components/ghostscript.lzma" dictionnary="26"/> -->
116 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
117 </target>
118
119
120
121 <target name="prepare-sourcecode-component">
122 <copy todir="components/tmp/sourcecode" overwrite="true">
123 <fileset dir="distributions/web">
124 <include name="common-src/**/*"/>
125 <include name="runtime-src/**/*"/>
126 <include name="build-src/**/*"/>
127 </fileset>
128 </copy>
129
130 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
131 </target>
132
133 <target name="compress-sourcecode-component">
134 <!-- <sevenzip task="encode" input="${basedir}/components/sourcecode.comp" output="${basedir}/components/sourcecode.lzma" dictionnary="26"/> -->
135 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
136 </target>
137
138
139</project>
Note: See TracBrowser for help on using the repository browser.