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

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

grouped code for creating cdrom components

File size: 3.3 KB
RevLine 
[19012]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 </target>
18
19 <target name="compress-components">
20 <antcall target="compress-core-component" />
21 <antcall target="compress-imagemagick-component" />
22 <antcall target="compress-ghostscript-component" />
23 </target>
24
25 <!-- 3rd level -->
26 <target name="prepare-core-component">
27 <!-- delete old stuff to create new components -->
28 <delete dir="components/tmp/core" quiet="true"/>
29 <mkdir dir="components/tmp/core"/>
30
31 <copy todir="components/tmp/core" overwrite="true">
32 <fileset dir="distributions/web">
33 <include name="**/*"/>
34
35 <!-- exclude imagemagick -->
36 <exclude name="bin/windows/imagemagick"/>
37 <exclude name="bin/windows/imagemagick/**/*"/>
38
39 <!-- exclude ghostscript -->
40 <exclude name="bin/windows/ghostscript"/>
41 <exclude name="bin/windows/ghostscript/**/*"/>
42
43 </fileset>
44 </copy>
45
46 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
47 </target>
48
49 <target name="compress-core-component">
50 <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
51 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
52 </target>
53
54 <target name="prepare-imagemagick-component">
55 <delete dir="components/tmp/imagemagick" quiet="true"/>
56 <mkdir dir="components/tmp/imagemagick"/>
57 <copy todir="components/tmp/imagemagick" overwrite="true">
58 <fileset dir="distributions/web/bin/windows/">
59 <include name="imagemagick/**/*"/>
60 </fileset>
61 </copy>
62
63 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
64 </target>
65
66 <target name="compress-imagemagick-component">
67 <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
68 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
69 </target>
70
71 <target name="prepare-ghostscript-component">
72 <delete dir="components/tmp/ghostscript" quiet="true"/>
73 <mkdir dir="components/tmp/ghostscript"/>
74 <copy todir="components/tmp/ghostscript" overwrite="true">
75 <fileset dir="distributions/web/bin/windows/">
76 <include name="ghostscript/**/*"/>
77 </fileset>
78 </copy>
79
80 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
81 </target>
82
83 <target name="compress-ghostscript-component">
84 <!-- <sevenzip task="encode" input="${basedir}/components/ghostscript.comp" output="${basedir}/components/ghostscript.lzma" dictionnary="26"/> -->
85 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
86 </target>
[19586]87
[19012]88</project>
Note: See TracBrowser for help on using the repository browser.