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

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

dont try to create the source distibution anymore as that is done by sork

File size: 4.3 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 </fileset>
58 </copy>
59
60 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
61 </target>
62
63
64 <target name="compress-core-component">
65 <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
66 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
67 </target>
68
69
70
71 <target name="prepare-imagemagick-component">
72 <delete dir="components/tmp/imagemagick" quiet="true"/>
73 <mkdir dir="components/tmp/imagemagick"/>
74 <copy todir="components/tmp/imagemagick" overwrite="true">
75 <fileset dir="distributions/web/bin/windows/">
76 <include name="imagemagick/**/*"/>
77 </fileset>
78 </copy>
79
80 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
81 </target>
82
83 <target name="compress-imagemagick-component">
84 <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
85 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
86 </target>
87
88
89
90 <target name="prepare-ghostscript-component">
91 <delete dir="components/tmp/ghostscript" quiet="true"/>
92 <mkdir dir="components/tmp/ghostscript"/>
93 <copy todir="components/tmp/ghostscript" overwrite="true">
94 <fileset dir="distributions/web/bin/windows/">
95 <include name="ghostscript/**/*"/>
96 </fileset>
97 </copy>
98
99 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
100 </target>
101
102 <target name="compress-ghostscript-component">
103 <!-- <sevenzip task="encode" input="${basedir}/components/ghostscript.comp" output="${basedir}/components/ghostscript.lzma" dictionnary="26"/> -->
104 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
105 </target>
106
107
108
109 <target name="prepare-sourcecode-component">
110 <delete dir="components/tmp/sourcecode" quiet="true"/>
111 <mkdir dir="components/tmp/sourcecode"/>
112 <copy todir="components/tmp/sourcecode" overwrite="true">
113 <fileset dir="distributions/web">
114 <include name="common-src/**/*"/>
115 <include name="runtime-src/**/*"/>
116 <include name="build-src/**/*"/>
117 <include name="win32.mak"/>
118 </fileset>
119 </copy>
120
121 <mkdir dir="products"/>
122 <zip destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.zip" basedir="components/tmp/sourcecode" compress="true"/>
123 </target>
124
125</project>
Note: See TracBrowser for help on using the repository browser.