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

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

kept Support.htm out of all distributions, and moved Install.txt from core component to sourcecode component

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 <exclude name="Install.txt"/>
62
63 <!-- exclude all readmes but the english one -->
64 <exclude name="READMEfr.txt"/>
65 <exclude name="READMEes.txt"/>
66 <exclude name="READMEru.txt"/>
67 <exclude name="READMEar.txt"/>
68
69
70 </fileset>
71 </copy>
72
73 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
74 </target>
75
76
77 <target name="compress-core-component">
78 <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
79 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
80 </target>
81
82
83
84 <target name="prepare-imagemagick-component">
85 <delete dir="components/tmp/imagemagick" quiet="true"/>
86 <mkdir dir="components/tmp/imagemagick"/>
87 <copy todir="components/tmp/imagemagick" overwrite="true">
88 <fileset dir="distributions/web/bin/windows/">
89 <include name="imagemagick/**/*"/>
90 </fileset>
91 </copy>
92
93 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
94 </target>
95
96 <target name="compress-imagemagick-component">
97 <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
98 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
99 </target>
100
101
102
103 <target name="prepare-ghostscript-component">
104 <delete dir="components/tmp/ghostscript" quiet="true"/>
105 <mkdir dir="components/tmp/ghostscript"/>
106 <copy todir="components/tmp/ghostscript" overwrite="true">
107 <fileset dir="distributions/web/bin/windows/">
108 <include name="ghostscript/**/*"/>
109 </fileset>
110 </copy>
111
112 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
113 </target>
114
115 <target name="compress-ghostscript-component">
116 <!-- <sevenzip task="encode" input="${basedir}/components/ghostscript.comp" output="${basedir}/components/ghostscript.lzma" dictionnary="26"/> -->
117 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
118 </target>
119
120
121
122 <target name="prepare-sourcecode-component">
123 <delete dir="components/tmp/sourcecode" quiet="true"/>
124 <mkdir dir="components/tmp/sourcecode"/>
125 <copy todir="components/tmp/sourcecode" overwrite="true">
126 <fileset dir="distributions/web">
127 <include name="common-src/**/*"/>
128 <include name="runtime-src/**/*"/>
129 <include name="build-src/**/*"/>
130 <include name="win32.mak"/>
131 <include name="win32cfg.h"/>
132 <include name="makegs2.bat"/>
133 <include name="Install.txt"/>
134 </fileset>
135 </copy>
136
137 <mkdir dir="products"/>
138 <zip destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.zip" basedir="components/tmp/sourcecode" compress="true"/>
139 </target>
140
141</project>
Note: See TracBrowser for help on using the repository browser.