source: main/trunk/release-kits/kits/sork3/ant-scripts/create-sourcecode-component.xml

Last change on this file was 31164, checked in by ak19, 7 years ago

Minor (spelling).

File size: 1.3 KB
RevLine 
[19973]1<?xml version="1.0" encoding="utf-8" ?>
[31164]2<!-- this is in a separate file because <import> can only load files that exist before build starts. This separate project is executed using <ant> AFTER greenstone3 has been checked out, to allow us to import the source-fileset.xml file -->
[21650]3<project name="create-sourcecode-component">
[19973]4
[21748]5 <import file="${basedir}/distributions/${dist.name}/resources/xml/components.xml"/>
6 <import file="${basedir}/distributions/${dist.name}/resources/xml/executables.xml"/>
[19973]7
8 <target name="create-sourcecode-component">
9
10 <copy todir="distributions/source-component">
[21650]11 <fileset dir="distributions/${dist.name}">
[19978]12 <patternset refid="greenstone3.source.component"/>
[19973]13 </fileset>
14 </copy>
15
[20533]16 <!-- fix permissions -->
17 <chmod perm="775">
18 <fileset dir="distributions/source-component"><patternset refid="greenstone3.source.executables"/></fileset>
19 </chmod>
[19973]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
[20533]30
[19973]31</project>
Note: See TracBrowser for help on using the repository browser.