Changeset 19386 for release-kits/sork2


Ignore:
Timestamp:
2009-05-11T15:32:12+12:00 (15 years ago)
Author:
oranfry
Message:

start on work to create a single multi-platform sourcecode archive

File:
1 edited

Legend:

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

    r19039 r19386  
    3232        <antcall target="tweak-files" />
    3333        <antcall target="create-archives"/>
     34        <antcall target="create-sourcecode"/>
    3435    </target>
    3536
     
    4748
    4849    <target name="tweak-files">
    49         <!--<rsr file="distributions/Greenstone-${version}-source/Install.sh" pattern="^(iscdrom=).*" replacement="$1&quot;no&quot;" />-->
    50         <delete file="distributions/Greenstone-${version}-source/Install.sh" />
    5150        <delete file="distributions/Greenstone-${version}-source/bin/linux/mgquery_old" />
    5251    </target>
     
    7170    </target>
    7271
     72    <target name="create-sourcecode">
     73        <!-- create a directory for the sourcecode -->
     74        <mkdir dir="distributions/Greenstone-${version}-sourcecode"/>
     75
     76        <!-- copy the files in -->
     77        <exec dir="distributions/Greenstone-${version}-source" executable="cp">
     78            <arg value="-r"/>
     79
     80            <!-- the bulk sourcecode -->
     81            <arg value="build-src"/>
     82            <arg value="common-src"/>
     83            <arg value="runtime-src"/>
     84            <arg value="runtime-src"/>
     85
     86            <!-- unix build files -->
     87            <arg value="acconfig.h"/>
     88            <arg value="aclocal.m4"/>
     89            <arg value="config.sub"/>
     90            <arg value="configtest.pl"/>
     91            <arg value="configure"/>
     92            <arg value="configure.in"/>
     93            <arg value="install-sh"/>
     94            <arg value="Makefile.in"/>
     95            <arg value="micotest.cpp"/>
     96            <arg value="config.h.in"/>
     97            <arg value="Install.txt"/>
     98
     99            <!-- windows build files -->
     100            <arg value="win32.mak"/>
     101            <arg value="win32cfg.h"/>
     102            <arg value="makegs2.bat"/>
     103
     104            <!-- destination -->
     105            <arg value="../Greenstone-${version}-sourcecode"/>
     106
     107        </exec>
     108
     109        <!-- unzip some windows packages -->
     110        <unzip src="distributions/Greenstone-${version}-sourcecode/common-src/indexers/packages/windows/iconv/iconv.zip" dest="distributions/Greenstone-${version}-sourcecode/common-src/indexers/packages/windows/iconv"/>
     111        <delete file="distributions/Greenstone-${version}-sourcecode/common-src/indexers/packages/windows/iconv/iconv.zip"/>
     112       
     113        <unzip src="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/crypt/crypt.zip" dest="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/crypt"/>
     114        <delete file="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/crypt/crypt.zip"/>
     115       
     116        <unzip src="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/expat/expat.zip" dest="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/expat"/>
     117        <delete file="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/expat/expat.zip"/>
     118       
     119        <unzip src="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/stlport/stlport.zip" dest="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/stlport"/>
     120        <delete file="distributions/Greenstone-${version}-sourcecode/common-src/packages/windows/stlport/stlport.zip"/>
     121
     122        <untar src="distributions/Greenstone-${version}-sourcecode/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="distributions/Greenstone-${version}-sourcecode/common-src/packages/sqlite" compression="gzip"/>
     123        <delete file="distributions/Greenstone-${version}-sourcecode/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
     124
     125        <!-- tar it up -->
     126        <exec dir="distributions" executable="tar">
     127            <arg line="-czf ../products/Greenstone-${version}-sourcecode.tar.gz Greenstone-${version}-sourcecode"/>
     128        </exec>
     129    </target>
     130
     131
    73132</project>
Note: See TracChangeset for help on using the changeset viewer.