Changeset 9890


Ignore:
Timestamp:
2005-05-17T10:27:53+12:00 (19 years ago)
Author:
kjdon
Message:

modified the gli-local and gli-external targets. now pass gsdlpath and gsdl3path env vars to the gli4gs3.sh/bat scripts - can find gsdl3 and gsdl, but still run the setup scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/build.xml

    r9874 r9890  
    10891089  </target>
    10901090  <target name="gli" description="Run the Greenstone Librarian Interface" depends="gli-local,gli-external">
     1091  </target>
     1092
     1093  <target name="gli-local" depends="init" if="gsdl2.islocal">
     1094    <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.linux}" dir="${basedir}/gli" spawn="true">
     1095      <env key="gsdl3path" path="${basedir}"/>
     1096      <env key="gsdlpath" path="${basedir}/gs2build"/>
     1097    </exec>
     1098    <exec executable="${basedir}/gli/gli4gs3.bat" os="${os.windows}" dir="${basedir}/gli" spawn="true">
     1099      <env key="GSDL3PATH" path="${basedir}"/>
     1100      <env key="GSDLPATH" path="${basedir}/gs2build"/>
     1101    </exec>
    10911102    <echo>Running GLI from Ant means that you don't get to see any of the terminal output. If you have problems with GLI and want to see the output, please run the script gli4gs3.sh/bat from the gsdl3/gli directory.
    10921103    </echo>
    10931104  </target>
    1094 
    1095   <target name="gli-local" depends="init" if="gsdl2.islocal">
    1096     <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.linux}" dir="${basedir}/gli" spawn="true">
    1097       <env key="GSDLHOME" path="${basedir}/gs2build"/>
    1098       <env key="GSDL3HOME" value="${basedir}"/>
    1099     </exec>
    1100     <exec executable="${basedir}/gli/gli4gs3.bat" os="${os.windows}" dir="${basedir}/gli" spawn="true">
    1101       <env key="GSDLHOME" value="${basedir}/gs2build"/>
    1102       <env key="GSDL3HOME" value="${basedir}"/>
    1103     </exec>
    1104   </target>
    11051105 
    11061106  <target name="gli-external" depends="init" unless="gsdl2.islocal">
    1107     <exec executable="${gsdl2.installed.path}/gli/gli4gs3.sh" os="${os.linux}" dir="${gsdl2.installed.path}/gli"/>
    1108     <exec executable="${gsdl2.installed.path}/gli/gli4gs3.bat" os="${os.windows}" dir="${gsdl2.installed.path}/gli"/>
     1107    <exec executable="${gsdl2.installed.path}/gli/gli4gs3.sh" os="${os.linux}" dir="${gsdl2.installed.path}/gli" spawn="true">
     1108      <env key="gsdl3path" path="${basedir}"/>
     1109      <env key="gsdlpath"  path="${gsdl2.installed.path}"/>
     1110    </exec>
     1111    <exec executable="${gsdl2.installed.path}/gli/gli4gs3.bat" os="${os.windows}" dir="${gsdl2.installed.path}/gli" spawn="true">
     1112      <env key="GSDL3PATH" path="${basedir}"/>
     1113      <env key="GSDLPATH" path="${gsdl2.installed.path}"/>
     1114    </exec>
     1115    <echo>Running GLI from Ant means that you don't get to see any of the terminal output. If you have problems with GLI and want to see the output, please run the following in a terminal/command prompt:
     1116                    (Linux              / Windows)
     1117in gsdl3 directory: source gs3-setup.sh / gs3-setup
     1118in gsdl directory:  source setup.bash   / setup
     1119in gli directory:   gli4gs3.sh          / gli4gs3
     1120    </echo>
    11091121  </target>
    11101122
Note: See TracChangeset for help on using the changeset viewer.