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

RevLine 
[17377]1<?xml version="1.0" encoding="utf-8" ?>
[17422]2<project name="wirk2-create-components" default="create-components">
[17377]3
[17652]4    <!-- create components from the distribution folder -->
[17472]5
[17652]6    <!-- 1st level -->
[17377]7    <target name="create-components">
[17472]8        <antcall target="prepare-components" />
9        <antcall target="compress-components" />
[17377]10    </target>
11   
[17652]12    <!-- 2nd level -->
[17472]13    <target name="prepare-components">
[17377]14        <antcall target="prepare-core-component" />
15        <antcall target="prepare-imagemagick-component" />
[17472]16        <antcall target="prepare-ghostscript-component" />
[17814]17
18        <antcall target="prepare-sourcecode-component" />
19
20        <antcall target="prepare-source-release" />
[17377]21    </target>
22   
[17472]23    <target name="compress-components">
24        <antcall target="compress-core-component" />
25        <antcall target="compress-imagemagick-component" />
26        <antcall target="compress-ghostscript-component" />
[17814]27
28        <antcall target="compress-source-release" />
29
[17377]30    </target>
31   
[17652]32    <!-- 3rd level --> 
[17377]33    <target name="prepare-core-component">
34        <!-- delete old stuff to create new components -->
[17428]35        <delete dir="components/tmp/core" quiet="true"/>
[17427]36        <mkdir dir="components/tmp/core"/>
[17377]37               
38        <copy todir="components/tmp/core" overwrite="true">
39                <fileset dir="distributions/web">
[17427]40                    <include name="**/*"/>
[17422]41               
[17427]42                    <!-- exclude imagemagick -->
[17437]43                    <exclude name="bin/windows/imagemagick"/>
[17447]44                    <exclude name="bin/windows/imagemagick/**/*"/>
[17422]45
[17427]46                    <!-- exclude ghostscript -->
[17437]47                    <exclude name="bin/windows/ghostscript"/>
[17447]48                    <exclude name="bin/windows/ghostscript/**/*"/>
[17377]49
[17427]50                    <!-- exclude sourcecode -->
[17437]51                    <exclude name="common-src"/>
[17447]52                    <exclude name="common-src/**/*"/>
[17437]53                    <exclude name="runtime-src"/>
[17447]54                    <exclude name="runtime-src/**/*"/>
[17437]55                    <exclude name="build-src"/>
[17447]56                    <exclude name="build-src/**/*"/>
[17422]57                   
[17377]58                </fileset>
59        </copy>
[17428]60
[17377]61        <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
62    </target>
63   
64   
65    <target name="compress-core-component">
[17414]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>
[17377]68    </target>
69   
70   
71   
72    <target name="prepare-imagemagick-component">
[17428]73        <delete dir="components/tmp/imagemagick" quiet="true"/>
[17427]74        <mkdir dir="components/tmp/imagemagick"/>
[17377]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">
[17414]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>
[17377]87    </target>
88   
89   
90   
91    <target name="prepare-ghostscript-component">
[17428]92        <delete dir="components/tmp/ghostscript" quiet="true"/>
[17427]93        <mkdir dir="components/tmp/ghostscript"/>
[17377]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">
[17414]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>
[17377]106    </target>
107   
108   
109   
110    <target name="prepare-sourcecode-component">
[17428]111        <delete dir="components/tmp/sourcecode" quiet="true"/>
[17427]112        <mkdir dir="components/tmp/sourcecode"/>
[17377]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/**/*"/>
[17937]118                    <include name="win32.mak"/>
[17377]119                </fileset>
120        </copy>
121               
[17937]122        <!--<zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />-->
[17721]123        <zip destfile="components/Greenstone-${version}-win32-sourcecode.zip"  basedir="components/tmp/sourcecode" compress="true"/>
[17377]124    </target>
125       
[17814]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
[17377]131</project>
Note: See TracBrowser for help on using the browser.