1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="mark2-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-sourcecode-component" />-->
|
---|
29 |
|
---|
30 | <antcall target="compress-source-release" />
|
---|
31 | </target>
|
---|
32 |
|
---|
33 | <!-- 3rd level -->
|
---|
34 | <target name="create-core-component">
|
---|
35 | <antcall target="prepare-core-component" />
|
---|
36 | <antcall target="compress-core-component" />
|
---|
37 | </target>
|
---|
38 |
|
---|
39 | <target name="create-sourcecode-component">
|
---|
40 | <antcall target="prepare-sourcecode-component" />
|
---|
41 | <antcall target="compress-sourcecode-component" />
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | <!-- core -->
|
---|
45 | <target name="prepare-core-component">
|
---|
46 |
|
---|
47 | <delete dir="components/tmp/core"/>
|
---|
48 | <mkdir dir="components/tmp/core"/>
|
---|
49 |
|
---|
50 | <copy todir="components/tmp/core" overwrite="true">
|
---|
51 | <fileset dir="distributions/web">
|
---|
52 | <include name="**/*"/>
|
---|
53 |
|
---|
54 | <!-- exclude sourcecode + imagemagick -->
|
---|
55 | <exclude name="common-src"/>
|
---|
56 | <exclude name="common-src/**/*"/>
|
---|
57 | <exclude name="runtime-src"/>
|
---|
58 | <exclude name="runtime-src/**/*"/>
|
---|
59 | <exclude name="build-src"/>
|
---|
60 | <exclude name="build-src/**/*"/>
|
---|
61 | <exclude name="bin/darwin/imagemagick"/>
|
---|
62 | <exclude name="bin/darwin/imagemagick/**/*"/>
|
---|
63 | <exclude name="bin/darwin/ghostscript"/>
|
---|
64 | <exclude name="bin/darwin/ghostscript/**/*"/>
|
---|
65 |
|
---|
66 | </fileset>
|
---|
67 | </copy>
|
---|
68 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
69 | </target>
|
---|
70 |
|
---|
71 | <target name="compress-core-component">
|
---|
72 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
73 | </target>
|
---|
74 |
|
---|
75 | <!-- sourcecode -->
|
---|
76 | <target name="prepare-sourcecode-component">
|
---|
77 |
|
---|
78 | <delete dir="components/tmp/sourcecode"/>
|
---|
79 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
80 |
|
---|
81 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
82 | <fileset dir="distributions/web">
|
---|
83 | <include name="common-src/**/*"/>
|
---|
84 | <include name="runtime-src/**/*"/>
|
---|
85 | <include name="build-src/**/*"/>
|
---|
86 | </fileset>
|
---|
87 | </copy>
|
---|
88 |
|
---|
89 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
90 | <zip destfile="components/Greenstone-${version}-MacOS-${processor}-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
|
---|
91 | </target>
|
---|
92 |
|
---|
93 | <target name="compress-sourcecode-component">
|
---|
94 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
95 | </target>
|
---|
96 |
|
---|
97 | <!-- imagemagick -->
|
---|
98 | <target name="prepare-imagemagick-component">
|
---|
99 |
|
---|
100 | <delete dir="components/tmp/imagemagick"/>
|
---|
101 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
102 |
|
---|
103 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
104 | <fileset dir="distributions/web/bin/darwin">
|
---|
105 | <include name="imagemagick/**/*"/>
|
---|
106 | </fileset>
|
---|
107 | </copy>
|
---|
108 |
|
---|
109 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
110 | </target>
|
---|
111 |
|
---|
112 | <target name="compress-imagemagick-component">
|
---|
113 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
114 | </target>
|
---|
115 |
|
---|
116 | <!-- ghostscript -->
|
---|
117 | <target name="prepare-ghostscript-component">
|
---|
118 |
|
---|
119 | <delete dir="components/tmp/ghostscript"/>
|
---|
120 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
121 |
|
---|
122 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
123 | <fileset dir="distributions/web/bin/darwin">
|
---|
124 | <include name="ghostscript/**/*"/>
|
---|
125 | </fileset>
|
---|
126 | </copy>
|
---|
127 |
|
---|
128 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
|
---|
129 | </target>
|
---|
130 |
|
---|
131 | <target name="compress-ghostscript-component">
|
---|
132 | <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
|
---|
133 | </target>
|
---|
134 |
|
---|
135 | <target name="compress-source-release">
|
---|
136 | <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/>
|
---|
137 | </target>
|
---|
138 |
|
---|
139 |
|
---|
140 | </project>
|
---|