source: release-kits/lirk2/ant-scripts/create-components.xml@ 19537

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

work on creating the cdrom installers and putting them with the cdrom components

File size: 3.2 KB
RevLine 
[17396]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 -->
[17649]5
6 <!-- 1st level -->
[17396]7 <target name="create-components">
[17644]8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
[18765]10 <antcall target="produce-cd-components"/>
[17396]11 </target>
[17644]12
[17649]13 <!-- 2nd level -->
[17644]14 <target name="prepare-components">
[17396]15 <antcall target="prepare-core-component" />
[17786]16 <antcall target="prepare-imagemagick-component" />
[17396]17 </target>
18
[17644]19 <target name="compress-components">
20 <antcall target="compress-core-component" />
21 <antcall target="compress-imagemagick-component" />
[17396]22 </target>
[17649]23
24 <!-- 3rd level -->
[17659]25
26 <!-- core -->
[17396]27 <target name="prepare-core-component">
[17450]28
29 <delete dir="components/tmp/core"/>
[17396]30 <mkdir dir="components/tmp/core"/>
[17450]31
[17396]32 <copy todir="components/tmp/core" overwrite="true">
33 <fileset dir="distributions/web">
[17422]34 <include name="**/*"/>
35
[19456]36 <!-- exclude imagemagick -->
[17644]37 <exclude name="bin/linux/imagemagick"/>
38 <exclude name="bin/linux/imagemagick/**/*"/>
[17422]39
[17396]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>
[17659]48
49 <!-- imagemagick -->
[17644]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>
[17649]67
[18765]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
[19456]97 <!-- imagemagick (completely linux specific) -->
[18765]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 </target>
104
[17396]105</project>
Note: See TracBrowser for help on using the repository browser.