1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk2-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 | <antcall target="produce-cd-components"/>
|
---|
11 | </target>
|
---|
12 |
|
---|
13 | <!-- 2nd level -->
|
---|
14 | <target name="prepare-components">
|
---|
15 | <antcall target="prepare-core-component" />
|
---|
16 | <antcall target="prepare-imagemagick-component" />
|
---|
17 | </target>
|
---|
18 |
|
---|
19 | <target name="compress-components">
|
---|
20 | <antcall target="compress-core-component" />
|
---|
21 | <antcall target="compress-imagemagick-component" />
|
---|
22 | </target>
|
---|
23 |
|
---|
24 | <!-- 3rd level -->
|
---|
25 |
|
---|
26 | <!-- core -->
|
---|
27 | <target name="prepare-core-component">
|
---|
28 |
|
---|
29 | <delete dir="components/tmp/core"/>
|
---|
30 | <mkdir dir="components/tmp/core"/>
|
---|
31 |
|
---|
32 | <copy todir="components/tmp/core" overwrite="true">
|
---|
33 | <fileset dir="distributions/web">
|
---|
34 | <include name="**/*"/>
|
---|
35 |
|
---|
36 | <!-- exclude imagemagick -->
|
---|
37 | <exclude name="bin/linux/imagemagick"/>
|
---|
38 | <exclude name="bin/linux/imagemagick/**/*"/>
|
---|
39 |
|
---|
40 | </fileset>
|
---|
41 | </copy>
|
---|
42 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
43 | </target>
|
---|
44 |
|
---|
45 | <target name="compress-core-component">
|
---|
46 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
47 | </target>
|
---|
48 |
|
---|
49 | <!-- imagemagick -->
|
---|
50 | <target name="prepare-imagemagick-component">
|
---|
51 |
|
---|
52 | <delete dir="components/tmp/imagemagick"/>
|
---|
53 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
54 |
|
---|
55 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
56 | <fileset dir="distributions/web/bin/linux">
|
---|
57 | <include name="imagemagick/**/*"/>
|
---|
58 | </fileset>
|
---|
59 | </copy>
|
---|
60 |
|
---|
61 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
62 | </target>
|
---|
63 |
|
---|
64 | <target name="compress-imagemagick-component">
|
---|
65 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
66 | </target>
|
---|
67 |
|
---|
68 | <!--
|
---|
69 | cd components
|
---|
70 | produce components for cdrom distributions, to be picked up and used by cdrk2 release kit
|
---|
71 | split components into linux only files (linux) and general files (all)
|
---|
72 | -->
|
---|
73 | <target name="produce-cd-components">
|
---|
74 | <delete dir="components/tmp/cdrom"/>
|
---|
75 | <mkdir dir="components/tmp/cdrom"/>
|
---|
76 |
|
---|
77 | <!-- core -->
|
---|
78 | <mkdir dir="components/tmp/cdrom/core/all"/>
|
---|
79 | <mkdir dir="components/tmp/cdrom/core/linux"/>
|
---|
80 | <copy todir="components/tmp/cdrom/core/all" overwrite="true">
|
---|
81 | <fileset dir="components/tmp/core"/>
|
---|
82 | </copy>
|
---|
83 | <move todir="components/tmp/cdrom/core/linux" overwrite="true">
|
---|
84 | <fileset dir="components/tmp/cdrom/core/all">
|
---|
85 | <include name="bin/linux"/>
|
---|
86 | <include name="bin/linux/**/*"/>
|
---|
87 | <include name="bin/windows"/>
|
---|
88 | <include name="bin/windows/**/*"/>
|
---|
89 | <include name="apache-httpd/linux"/>
|
---|
90 | <include name="apache-httpd/linux/**/*"/>
|
---|
91 | <include name="*.sh"/>
|
---|
92 | <include name="*.csh"/>
|
---|
93 | <include name="*.bash"/>
|
---|
94 | </fileset>
|
---|
95 | </move>
|
---|
96 |
|
---|
97 | <!-- imagemagick (completely linux specific) -->
|
---|
98 | <mkdir dir="components/tmp/cdrom/imagemagick/linux"/>
|
---|
99 | <copy todir="components/tmp/cdrom/imagemagick/linux" overwrite="true">
|
---|
100 | <fileset dir="components/tmp/imagemagick"/>
|
---|
101 | </copy>
|
---|
102 |
|
---|
103 | <!-- archive the cd components -->
|
---|
104 | <mkdir dir="products"/>
|
---|
105 | <tar destfile="products/cdrom-components-${version}-linux.tar.gz" basedir="components/tmp/cdrom" compression="gzip"/>
|
---|
106 |
|
---|
107 | </target>
|
---|
108 |
|
---|
109 | </project>
|
---|