root/main/trunk/release-kits/kits/sork3/ant-scripts/create-sourcecode-component.xml @ 21748

Revision 21748, 1.3 KB (checked in by oranfry, 10 years ago)

moved binary specific forwarding properties to rk3, and fixed sork3

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">
4
5    <import file="${basedir}/distributions/${dist.name}/resources/xml/components.xml"/>
6    <import file="${basedir}/distributions/${dist.name}/resources/xml/executables.xml"/>
7
8    <target name="create-sourcecode-component">
9
10        <copy todir="distributions/source-component">
11            <fileset dir="distributions/${dist.name}">
12                <patternset refid="greenstone3.source.component"/>
13            </fileset>
14        </copy>
15
16        <!-- fix permissions -->
17        <chmod perm="775">
18            <fileset dir="distributions/source-component"><patternset refid="greenstone3.source.executables"/></fileset>
19        </chmod>
20
21        <!-- archive it -->
22        <delete file="products/Greenstone-${version}-source-component.zip"/>
23        <zip destfile="products/Greenstone-${version}-source-component.zip" basedir="distributions/source-component" includes="**/*"/>
24        <exec dir="distributions/source-component" executable="bash">
25            <arg value="-c"/>
26            <arg value="tar -czf ../../products/Greenstone-${version}-source-component.tar.gz *"/>
27        </exec>
28    </target>
29
30
31</project>
Note: See TracBrowser for help on using the browser.