Changeset 19600

Show
Ignore:
Timestamp:
26.05.2009 16:05:59 (10 years ago)
Author:
oranfry
Message:

source release fices

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • release-kits/sork2/ant-scripts/build.xml

    r19566 r19600  
    7373    <target name="create-sourcecode"> 
    7474        <!-- create a directory for the sourcecode --> 
    75         <mkdir dir="distributions/Greenstone-${version}-source-component"/> 
     75        <mkdir dir="distributions/source-component"/> 
    7676 
    7777        <!-- copy the files in --> 
     
    8888            <arg value="aclocal.m4"/> 
    8989            <arg value="config.sub"/> 
     90            <arg value="config.guess"/> 
    9091            <arg value="configtest.pl"/> 
    9192            <arg value="configure"/> 
     
    103104 
    104105            <!-- destination --> 
    105             <arg value="../Greenstone-${version}-source-component"/> 
     106            <arg value="../source-component"/> 
    106107 
    107108        </exec> 
    108109 
    109110        <!-- unzip some windows packages --> 
    110         <unzip src="distributions/Greenstone-${version}-source-component/common-src/indexers/packages/windows/iconv/iconv.zip" dest="distributions/Greenstone-${version}-source-component/common-src/indexers/packages/windows/iconv"/> 
    111         <delete file="distributions/Greenstone-${version}-source-component/common-src/indexers/packages/windows/iconv/iconv.zip"/> 
     111        <unzip src="distributions/source-component/common-src/indexers/packages/windows/iconv/iconv.zip" dest="distributions/source-component/common-src/indexers/packages/windows/iconv"/> 
     112        <delete file="distributions/source-component/common-src/indexers/packages/windows/iconv/iconv.zip"/> 
    112113         
    113         <unzip src="distributions/Greenstone-${version}-source-component/common-src/packages/windows/crypt/crypt.zip" dest="distributions/Greenstone-${version}-source-component/common-src/packages/windows/crypt"/> 
    114         <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/crypt/crypt.zip"/> 
     114        <unzip src="distributions/source-component/common-src/packages/windows/crypt/crypt.zip" dest="distributions/source-component/common-src/packages/windows/crypt"/> 
     115        <delete file="distributions/source-component/common-src/packages/windows/crypt/crypt.zip"/> 
    115116         
    116         <unzip src="distributions/Greenstone-${version}-source-component/common-src/packages/windows/expat/expat.zip" dest="distributions/Greenstone-${version}-source-component/common-src/packages/windows/expat"/> 
    117         <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/expat/expat.zip"/> 
     117        <unzip src="distributions/source-component/common-src/packages/windows/expat/expat.zip" dest="distributions/source-component/common-src/packages/windows/expat"/> 
     118        <delete file="distributions/source-component/common-src/packages/windows/expat/expat.zip"/> 
    118119         
    119         <unzip src="distributions/Greenstone-${version}-source-component/common-src/packages/windows/stlport/stlport.zip" dest="distributions/Greenstone-${version}-source-component/common-src/packages/windows/stlport"/> 
    120         <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/stlport/stlport.zip"/> 
     120        <unzip src="distributions/source-component/common-src/packages/windows/stlport/stlport.zip" dest="distributions/source-component/common-src/packages/windows/stlport"/> 
     121        <delete file="distributions/source-component/common-src/packages/windows/stlport/stlport.zip"/> 
    121122 
    122         <untar src="distributions/Greenstone-${version}-source-component/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="distributions/Greenstone-${version}-source-component/common-src/packages/sqlite" compression="gzip"/> 
    123         <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/> 
     123        <exec executable="tar" dir="distributions/source-component/common-src/packages/sqlite"><arg value="-xzf"/><arg value="sqlite-amalgamation-3.5.9.tar.gz"/></exec> 
     124        <delete file="distributions/source-component/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/> 
     125 
     126        <exec executable="tar" dir="distributions/source-component/common-src/packages/expat"><arg value="-xzf"/><arg value="expat-1.95.8.tar.gz"/></exec> 
     127        <delete file="distributions/source-component/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/> 
    124128 
    125129        <!-- archive it --> 
    126130        <delete file="products/Greenstone-${version}-source-component.zip"/> 
    127         <zip destfile="products/Greenstone-${version}-source-component.zip"  basedir="distributions" includes="Greenstone-${version}-source-component/**/*"/> 
    128         <exec dir="distributions" executable="tar"> 
    129             <arg line="-czf ../products/Greenstone-${version}-source-component.tar.gz Greenstone-${version}-source-component"/> 
     131        <zip destfile="products/Greenstone-${version}-source-component.zip" basedir="distributions/source-component" includes="**/*"/> 
     132        <exec dir="distributions/source-component" executable="bash"> 
     133            <arg value="-c"/> 
     134            <arg value="tar -czf ../../products/Greenstone-${version}-source-component.tar.gz *"/> 
    130135        </exec> 
    131136    </target>