root/release-kits/wirk2/ant-scripts/create-components.xml @ 17937

Revision 17937, 4.5 KB (checked in by oranfry, 11 years ago)

splash screen changes

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