Changeset 13675


Ignore:
Timestamp:
2007-01-18T13:25:12+13:00 (17 years ago)
Author:
shaoqun
Message:

made it pass GSDL3HOME to GEMS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/gems4gs3.sh

    r13554 r13675  
    4444fi
    4545
    46 
    47 ##  ---- Determine GSDLHOME ----
    48 gsdlpath=
    49 
     46##  ---- Determine GSDL3SRCHOME ----
     47gsdl3srcpath=
    5048# Some users may set the above line manually
    51 if [ "x$gsdlpath" = "x" ]; then
     49if [ "x$gsdl3srcpath" = "x" ]; then
    5250    # Check the environment variable first
    53     if [ "x$GSDLHOME" != "x" ]; then
    54     gsdlpath=$GSDLHOME
    55 
    56     # If it is not set, assume that the GLI (and thus GEMS) is installed as a subdirectory of Greenstone
    57     else
    58     gsdlpath=`(cd .. && pwd)`
     51    if [ "x$GSDL3SRCHOME" != "x" ]; then
     52    gsdl3srcpath=$GSDL3SRCHOME
     53
     54    # If it is not set, assume that the GLI (and thus GEMS) is installed as a subdirectory of Greenstone3
     55    else
     56    gsdl3srcpath=`(cd .. && pwd)`
    5957    fi
    6058fi
     
    6260# Check that the Greenstone installation looks OK
    6361if [ "$glilang" = "es" ]; then
    64     echo "Revisando GSDL: $gsdlpath"
    65 elif [ "$glilang" = "fr" ]; then
    66     echo "Vérification de GSDL: $gsdlpath"
    67 elif [ "$glilang" = "ru" ]; then
    68     echo "ðÒÏ×ÅÒËÁ GSDL: $gsdlpath"
    69 else
    70     echo "Checking GSDL: $gsdlpath"
    71 fi
    72 if [ ! -f "${gsdlpath}/gs3-setup.sh" ] ; then
     62    echo "Revisando GSDL3: $gsdl3srcpath"
     63elif [ "$glilang" = "fr" ]; then
     64    echo "Vérification de GSDL3: $gsdl3srcpath"
     65elif [ "$glilang" = "ru" ]; then
     66    echo "ðÒÏ×ÅÒËÁ GSDL3: $gsdl3srcpath"
     67else
     68    echo "Checking GSDL3: $gsdl3srcpath"
     69fi
     70if [ ! -f "${gsdl3srcpath}/gs3-setup.sh" ] ; then
    7371    echo
    7472    if [ "$glilang" = "es" ]; then
     
    8987fi
    9088
    91 # Setup Greenstone, unless it has already been done
    92 if [ "x$GSDLHOME" = "x" ]; then
    93     cd "$gsdlpath"
     89# Setup Greenstone3, unless it has already been done
     90if [ "x$GSDL3SRCHOME" = "x" ]; then
     91    cd "$gsdl3srcpath"
    9492    . gs3-setup.sh
    9593    cd "$thisdir"
     
    215213# -Xloggc:<file>   Write garbage collection log
    216214
    217 $javapath -classpath classes/:GLI.jar:lib/apache.jar org.greenstone.gatherer.gems.GEMS -gsdl $GSDLHOME $*
     215
     216$javapath -classpath classes/:GLI.jar:lib/apache.jar org.greenstone.gatherer.gems.GEMS -gsdl3 $GSDL3HOME $*
    218217
    219218if [ "$glilang" = "es" ]; then
Note: See TracChangeset for help on using the changeset viewer.