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

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

source and binary zip release tweaks

File size: 4.7 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
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
18 <antcall target="prepare-sourcecode-component" />
19
20 </target>
21
22 <target name="compress-components">
23 <antcall target="compress-core-component" />
24 <antcall target="compress-imagemagick-component" />
25 <antcall target="compress-ghostscript-component" />
26
27 <antcall target="compress-zipped-binary-release"><param name="format" value="zip"/></antcall> <!-- from init -->
28
29 </target>
30
31 <!-- 3rd level -->
32 <target name="prepare-core-component">
33 <!-- delete old stuff to create new components -->
34 <delete dir="components/tmp/core" quiet="true"/>
35 <mkdir dir="components/tmp/core"/>
36
37 <copy todir="components/tmp/core" overwrite="true">
38 <fileset dir="distributions/web">
39 <include name="**/*"/>
40
41 <!-- exclude imagemagick -->
42 <exclude name="bin/windows/imagemagick"/>
43 <exclude name="bin/windows/imagemagick/**/*"/>
44
45 <!-- exclude ghostscript -->
46 <exclude name="bin/windows/ghostscript"/>
47 <exclude name="bin/windows/ghostscript/**/*"/>
48
49 <!-- exclude sourcecode -->
50 <exclude name="common-src"/>
51 <exclude name="common-src/**/*"/>
52 <exclude name="runtime-src"/>
53 <exclude name="runtime-src/**/*"/>
54 <exclude name="build-src"/>
55 <exclude name="build-src/**/*"/>
56
57 <!-- exclude buildfiles -->
58 <exclude name="win32.mak"/>
59 <exclude name="win32cfg.h"/>
60 <exclude name="makegs2.bat"/>
61
62 <!-- exclude all readmes but the english one -->
63 <exclude name="READMEfr.txt"/>
64 <exclude name="READMEes.txt"/>
65 <exclude name="READMEru.txt"/>
66 <exclude name="READMEar.txt"/>
67
68
69 </fileset>
70 </copy>
71
72 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
73 </target>
74
75
76 <target name="compress-core-component">
77 <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
78 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
79 </target>
80
81
82
83 <target name="prepare-imagemagick-component">
84 <delete dir="components/tmp/imagemagick" quiet="true"/>
85 <mkdir dir="components/tmp/imagemagick"/>
86 <copy todir="components/tmp/imagemagick" overwrite="true">
87 <fileset dir="distributions/web/bin/windows/">
88 <include name="imagemagick/**/*"/>
89 </fileset>
90 </copy>
91
92 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
93 </target>
94
95 <target name="compress-imagemagick-component">
96 <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
97 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
98 </target>
99
100
101
102 <target name="prepare-ghostscript-component">
103 <delete dir="components/tmp/ghostscript" quiet="true"/>
104 <mkdir dir="components/tmp/ghostscript"/>
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 <delete dir="components/tmp/sourcecode" quiet="true"/>
123 <mkdir dir="components/tmp/sourcecode"/>
124 <copy todir="components/tmp/sourcecode" overwrite="true">
125 <fileset dir="distributions/web">
126 <include name="common-src/**/*"/>
127 <include name="runtime-src/**/*"/>
128 <include name="build-src/**/*"/>
129 <include name="win32.mak"/>
130 <include name="win32cfg.h"/>
131 <include name="makegs2.bat"/>
132 </fileset>
133 </copy>
134
135 <mkdir dir="products"/>
136 <zip destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.zip" basedir="components/tmp/sourcecode" compress="true"/>
137 </target>
138
139</project>
Note: See TracBrowser for help on using the repository browser.