Changeset 19957

Show
Ignore:
Timestamp:
06.07.2009 14:48:36 (10 years ago)
Author:
oranfry
Message:

first working sork3

Location:
release-kits/sork3
Files:
1 modified
1 moved

Legend:

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

    r19954 r19957  
    2323    <import file="../greenstone3/ant-scripts/rk3-targets.xml"/> 
    2424 
     25    <!-- helper constant --> 
     26    <property name="dist.dirname" value="Greenstone-${version}-source-distribution"/> 
     27 
    2528    <!-- THE MAIN TARGET --> 
    26     <target name="sork2" depends="init"> 
    27         <antcall target="export-greenstone3"><param name="dest" value="distributions/Greenstone-${version}-source-distribution"/></antcall> 
    28         <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution"/></antcall> 
    29         <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution/gli"/></antcall> 
     29    <target name="sork3" depends="init"> 
     30        <antcall target="export-greenstone3"><param name="dest" value="distributions/${dist.dirname}"/></antcall> 
     31        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/${dist.dirname}"/></antcall> 
     32        <ant dir="distributions/${dist.dirname}" target="prepare"> 
     33            <property name="properties.accepted" value="true"/> 
     34            <property name="app.version" value="${version}"/> 
     35        </ant> 
     36        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/${dist.dirname}/gli"/></antcall> 
    3037        <antcall target="insert-winbin"/> 
    31         <antcall target="insert-windows-perl"><param name="todir" value="${basedir}/distributions/Greenstone-${version}-source-distribution/bin/windows"/></antcall> 
     38        <antcall target="insert-windows-perl"><param name="todir" value="${basedir}/distributions/${dist.dirname}/gs2build/bin/windows"/></antcall> 
    3239        <antcall target="tweak-files"/> 
    3340        <antcall target="create-archives"/> 
     
    4855 
    4956    <target name="tweak-files"> 
    50         <delete file="distributions/Greenstone-${version}-source-distribution/bin/linux/mgquery_old" /> 
     57        <delete file="distributions/${dist.dirname}/gs2build/bin/linux/mgquery_old" /> 
    5158    </target> 
    5259 
    5360    <target name="insert-winbin"> 
    54         <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows"/> 
     61        <delete dir="distributions/${dist.dirname}/gs2build/bin/windows"/> 
    5562        <svn> 
    56             <export srcurl="${svn.root}/other-projects/trunk/winbin/bin" destPath="distributions/Greenstone-${version}-source-distribution/bin/windows"/> 
     63            <export srcurl="${svn.root}/other-projects/trunk/winbin/bin" destPath="distributions/${dist.dirname}/gs2build/bin/windows"/> 
    5764        </svn> 
    58         <get src="http://greenstone.org/release-snapshots/server.exe" dest="distributions/Greenstone-${version}-source-distribution/bin/windows/server.exe"/> 
    59          
    60         <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/imagemagick"/> 
    61         <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/ghostscript"/> 
     65        <delete dir="distributions/${dist.dirname}/gs2build/bin/windows/imagemagick"/> 
     66        <delete dir="distributions/${dist.dirname}/gs2build/bin/windows/ghostscript"/> 
    6267    </target> 
    6368 
    6469    <target name="create-archives"> 
    6570        <mkdir dir="products"/> 
    66         <delete file="products/Greenstone-${version}-source-distribution.zip"/> 
    67         <zip destfile="products/Greenstone-${version}-source-distribution.zip"  basedir="distributions" includes="Greenstone-${version}-source-distribution/**/*"/> 
     71        <delete file="products/${dist.dirname}.zip"/> 
     72        <zip destfile="products/${dist.dirname}.zip"  basedir="distributions" includes="${dist.dirname}/**/*"/> 
    6873        <exec dir="distributions" executable="tar"> 
    69             <arg line="-czf ../products/Greenstone-${version}-source-distribution.tar.gz Greenstone-${version}-source-distribution"/> 
     74            <arg line="-czf ../products/${dist.dirname}.tar.gz ${dist.dirname}"/> 
    7075        </exec> 
    7176    </target> 
     
    7378    <target name="create-sourcecode"> 
    7479        <!-- create a directory for the sourcecode --> 
    75         <mkdir dir="distributions/source-component"/> 
     80        <mkdir dir="distributions/source-component/gs2build"/> 
    7681 
    7782        <!-- copy the files in --> 
    78         <exec dir="distributions/Greenstone-${version}-source-distribution" executable="cp"> 
     83        <exec dir="distributions/${dist.dirname}" executable="cp"> 
    7984            <arg value="-r"/> 
    8085 
    8186            <!-- the bulk sourcecode --> 
    82             <arg value="build-src"/> 
    83             <arg value="common-src"/> 
    84             <arg value="runtime-src"/> 
     87            <arg value="gs2build/build-src"/> 
     88            <arg value="gs2build/common-src"/> 
    8589 
    86             <!-- unix build files --> 
    87             <arg value="acconfig.h"/> 
    88             <arg value="aclocal.m4"/> 
    89             <arg value="config.sub"/> 
    90             <arg value="config.guess"/> 
    91             <arg value="configtest.pl"/> 
    92             <arg value="configure"/> 
    93             <arg value="configure.in"/> 
    94             <arg value="install-sh"/> 
    95             <arg value="Makefile.in"/> 
    96             <arg value="micotest.cpp"/> 
    97             <arg value="config.h.in"/> 
    98             <arg value="Install.txt"/> 
     90            <!-- destination --> 
     91            <arg value="../source-component/gs2build"/> 
    9992 
    100             <!-- windows build files --> 
    101             <arg value="win32.mak"/> 
    102             <arg value="win32cfg.h"/> 
    103             <arg value="makegs2.bat"/> 
     93        </exec> 
     94         
     95        <!-- copy the files in --> 
     96        <exec dir="distributions/${dist.dirname}" executable="cp"> 
     97            <arg value="-r"/> 
     98 
     99            <!-- the bulk sourcecode --> 
     100            <arg value="src"/> 
    104101 
    105102            <!-- destination --> 
     
    109106 
    110107        <!-- unzip some windows packages --> 
    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"/> 
     108        <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"/> 
     109        <delete file="distributions/source-component/gs2build/common-src/indexers/packages/windows/iconv/iconv.zip"/> 
    113110         
    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"/> 
     111        <unzip src="distributions/source-component/gs2build/common-src/packages/windows/crypt/crypt.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/crypt"/> 
     112        <delete file="distributions/source-component/gs2build/common-src/packages/windows/crypt/crypt.zip"/> 
    116113         
    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"/> 
     114        <unzip src="distributions/source-component/gs2build/common-src/packages/windows/expat/expat.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/expat"/> 
     115        <delete file="distributions/source-component/gs2build/common-src/packages/windows/expat/expat.zip"/> 
    119116         
    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"/> 
     117        <unzip src="distributions/source-component/gs2build/common-src/packages/windows/stlport/stlport.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/stlport"/> 
     118        <delete file="distributions/source-component/gs2build/common-src/packages/windows/stlport/stlport.zip"/> 
    122119 
    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"/> 
     120        <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> 
     121        <delete file="distributions/source-component/gs2build/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/> 
    125122 
    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"/> 
     123        <exec executable="tar" dir="distributions/source-component/gs2build/common-src/packages/expat"><arg value="-xzf"/><arg value="expat-1.95.8.tar.gz"/></exec> 
     124        <delete file="distributions/source-component/gs2build/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/> 
    128125 
    129126        <!-- archive it --> 
  • release-kits/sork3/bin/sork3

    r19038 r19957  
    11#!/bin/bash 
    2 export rk_name="sork2" 
    3 export rk_fullname="Source Release Kit for Greenstone2" 
    4 export RK_HOME=$SORK2_HOME 
    5 $SORK2_HOME/linux/rk $* 
     2export rk_name="sork3" 
     3export rk_fullname="Source Release Kit for Greenstone3" 
     4export RK_HOME=$SORK3_HOME 
     5$SORK3_HOME/linux/rk $* 
    66