source: release-kits/sork3/ant-scripts/create-sourcecode-component.xml@ 19974

Last change on this file since 19974 was 19974, checked in by oranfry, 11 years ago

got the code working to sourcecode component

File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!-- this is in a separate file because <import> can only load files that exist before build starts. This separate project is exeuted using <ant> AFTER greenstone3 has been checked out, to allow us to import the source-fileset.xml file -->
3<project name="create-sourcecode-component" default="csc">
4 <echo>basedir: ${basedir}</echo>
5
6 <import file="${basedir}/distributions/${dist.dirname}/resources/xml/source-fileset.xml"/>
7
8 <target name="create-sourcecode-component">
9
10 <copy todir="distributions/source-component">
11 <fileset dir="distributions/${dist.dirname}">
12 <patternset refid="greenstone3.source.fileset"/>
13 </fileset>
14 </copy>
15
16 <!-- unzip some windows packages -->
17 <unzip src="distributions/source-component/gs2build/common-src/indexers/packages/windows/iconv/iconv.zip" dest="distributions/source-component/gs2build/common-src/indexers/packages/windows/iconv"/>
18 <delete file="distributions/source-component/gs2build/common-src/indexers/packages/windows/iconv/iconv.zip"/>
19
20 <unzip src="distributions/source-component/gs2build/common-src/packages/windows/crypt/crypt.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/crypt"/>
21 <delete file="distributions/source-component/gs2build/common-src/packages/windows/crypt/crypt.zip"/>
22
23 <unzip src="distributions/source-component/gs2build/common-src/packages/windows/expat/expat.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/expat"/>
24 <delete file="distributions/source-component/gs2build/common-src/packages/windows/expat/expat.zip"/>
25
26 <unzip src="distributions/source-component/gs2build/common-src/packages/windows/stlport/stlport.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/stlport"/>
27 <delete file="distributions/source-component/gs2build/common-src/packages/windows/stlport/stlport.zip"/>
28
29 <exec executable="tar" dir="distributions/source-component/gs2build/common-src/packages/sqlite"><arg value="-xzf"/><arg value="sqlite-amalgamation-3.5.9.tar.gz"/></exec>
30 <delete file="distributions/source-component/gs2build/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
31
32 <exec executable="tar" dir="distributions/source-component/gs2build/common-src/packages/expat"><arg value="-xzf"/><arg value="expat-1.95.8.tar.gz"/></exec>
33 <delete file="distributions/source-component/gs2build/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
34
35 <!-- archive it -->
36 <delete file="products/Greenstone-${version}-source-component.zip"/>
37 <zip destfile="products/Greenstone-${version}-source-component.zip" basedir="distributions/source-component" includes="**/*"/>
38 <exec dir="distributions/source-component" executable="bash">
39 <arg value="-c"/>
40 <arg value="tar -czf ../../products/Greenstone-${version}-source-component.tar.gz *"/>
41 </exec>
42 </target>
43
44</project>
Note: See TracBrowser for help on using the repository browser.