Changeset 24053


Ignore:
Timestamp:
05/19/11 13:41:25 (10 years ago)
Author:
sjm84
Message:

Greenstone 3 now builds the demo collection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/kits/rk3/ant-scripts/compile.xml

    r23967 r24053  
    137137        <antcall target="strip-svn-dirs"><param name="dir" value="compiled"/></antcall>
    138138
     139        <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
     140            <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl">
     141                <arg line="-S"/>
     142                <arg line="gs2build/bin/script/import.pl -site localsite lucene-jdbm-demo"/>
     143                <env key="GSDLHOME" path="${basedir}/compiled/gs2build"/>
     144                <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/web/sites/localsite/collect"/>
     145                <env key="GSDLOS" path="windows"/>
     146                <env key="PATH" path="${basedir}/compiled/bin/windows/perl/bin:${basedir}/compiled/bin/windows:${basedir}/compiled/bin/script:${env.PATH}"/>
     147            </exec>
     148            <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl">
     149                <arg line="-S"/>
     150                <arg line="gs2build/bin/script/buildcol.pl -site localsite lucene-jdbm-demo"/>
     151                <env key="GSDLHOME" path="${basedir}/compiled/gs2build"/>
     152                <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/web/sites/localsite/collect"/>
     153                <env key="GSDLOS" path="windows"/>
     154                <env key="PATH" path="${basedir}/compiled/bin/windows/perl/bin:${basedir}/compiled/bin/windows:${basedir}/compiled/bin/script:${env.PATH}"/>
     155            </exec>
     156            <delete dir="${basedir}/compiled/web/sites/collect/localsite/collect/lucene-jdbm-demo/index"/>
     157            <move file="${basedir}/compiled/web/sites/collect/localsite/collect/lucene-jdbm-demo/building" tofile="${basedir}/compiled/web/sites/collect/localsite/collect/lucene-jdbm-demo/index"/>
     158        <else>
     159            <echo file="${basedir}/compiled/buildscript.sh">
     160                #!/bin/bash
     161                source gs3-setup.sh
     162                /usr/bin/perl -S ${basedir}/compiled/gs2build/bin/script/import.pl -site localsite lucene-jdbm-demo
     163                /usr/bin/perl -S ${basedir}/compiled/gs2build/bin/script/buildcol.pl -site localsite lucene-jdbm-demo
     164                rm -rf ${basedir}/compiled/web/sites/localsite/collect/lucene-jdbm-demo/index
     165                mv ${basedir}/compiled/web/sites/localsite/collect/lucene-jdbm-demo/building ${basedir}/compiled/web/sites/localsite/collect/lucene-jdbm-demo/index
     166            </echo>
     167            <chmod perm="775" file="${basedir}/compiled/buildscript.sh"/>
     168            <exec dir="${basedir}/compiled" executable="/bin/bash">
     169                <arg line="buildscript.sh"/>
     170            </exec>
     171            <delete file="${basedir}/compiled/buildscript.sh"/>
     172        </else>
     173        </if>
     174
    139175        <!-- (linux only) -->
    140176        <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
Note: See TracChangeset for help on using the changeset viewer.