Changeset 8065


Ignore:
Timestamp:
2004-08-26T12:19:13+12:00 (20 years ago)
Author:
mdewsnip
Message:

Now sets GSDLHOME itself (rather than relying on gs3-setup.* to do it).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/gli4gs3.sh

    r7853 r8065  
    4545
    4646
    47 ##  ---- Determine GSDLHOME ----
     47##  ---- Determine GSDL3HOME ----
    4848gsdl3path=
    4949
     
    5454    gsdl3path=$GSDL3HOME
    5555
    56     # If it is not set, assume that the GLI is installed as a subdirectory of Greenstone
     56    # If it is not set, assume that the GLI is installed as a subdirectory of Greenstone 3
    5757    else
    5858    pushd .. > /dev/null
     
    6262fi
    6363
     64# Check that the Greenstone 3 installation looks OK
     65if [ "$glilang" == "es" ]; then
     66    echo "Revisando GSDL3: $gsdl3path"
     67elif [ "$glilang" == "fr" ]; then
     68    echo "Vérification de GSDL3: $gsdl3path"
     69elif [ "$glilang" == "ru" ]; then
     70    echo "ðÒÏ×ÅÒËÁ GSDL3: $gsdl3path"
     71else
     72    echo "Checking GSDL3: $gsdl3path"
     73fi
     74if [ ! -f "${gsdl3path}/gs3-setup.sh" ] ; then
     75    echo
     76    if [ "$glilang" == "es" ]; then
     77    echo "No se pudo encontrar la instalación de Greenstone 3 o está incompleta."
     78        echo "Trate de reinstalar Greenstone 3 y a continuación ejecute nuevamente"
     79    echo "este guión."
     80    elif [ "$glilang" == "fr" ]; then
     81    echo "L'installation de Greenstone 3 est introuvable ou incomplète."
     82    echo "Essayez de réinstaller Greenstone 3 et exécutez ce script à nouveau."
     83    elif [ "$glilang" == "ru" ]; then
     84    echo "éÎÓÔÁÌÌÑÃÉÑ Greenstone 3 ÎÅ ÂÙÌÁ ÎÁÊÄÅÎÁ ÉÌÉ ÏÎÁ ÎÅÐÏÌÎÁ."
     85    echo "ðÏÐÒÏÂÕÊÔÅ ÐÏ×ÔÏÒÎÏ ÕÓÔÁÎÏ×ÉÔØ Greenstone 3, Á ÚÁÔÅÍ ××ÅÓÔÉ ÜÔÏÔ ÓËÒÉÐÔ ÓÎÏ×Á."
     86    else
     87    echo "The Greenstone 3 installation could not be found, or is incomplete."
     88    echo "Try reinstalling Greenstone 3 then running this script again."
     89    fi
     90    exit 1
     91fi
     92
     93# Setup Greenstone 3, unless it has already been done
     94if [ "$GSDL3HOME" == "" ]; then
     95    pushd $gsdl3path > /dev/null
     96    source gs3-setup.sh
     97    popd > /dev/null
     98fi
     99
     100
     101##  ---- Determine GSDLHOME ----
     102gsdlpath=
     103
     104# Some users may set the above line manually
     105if [ "$gsdlpath" == "" ]; then
     106    # Check the environment variable first
     107    if [ "$GSDLHOME" != "" ]; then
     108    gsdlpath=$GSDLHOME
     109
     110    # If it is not set, assume that the gs2extra subdirectory of Greenstone 3 exists
     111    else
     112    gsdlpath=$GSDL3HOME/gs2extra
     113    fi
     114fi
     115
    64116# Check that the Greenstone installation looks OK
    65117if [ "$glilang" == "es" ]; then
    66     echo "Revisando GSDL3: $gsdl3path"
    67 elif [ "$glilang" == "fr" ]; then
    68     echo "Vérification de GSDL3: $gsdl3path"
    69 elif [ "$glilang" == "ru" ]; then
    70     echo "ðÒÏ×ÅÒËÁ GSDL3: $gsdl3path"
    71 else
    72     echo "Checking GSDL3: $gsdl3path"
    73 fi
    74 if [ ! -f "${gsdl3path}/gs3-setup.sh" ] ; then
     118    echo "Revisando GSDL: $gsdlpath"
     119elif [ "$glilang" == "fr" ]; then
     120    echo "Vérification de GSDL: $gsdlpath"
     121elif [ "$glilang" == "ru" ]; then
     122    echo "ðÒÏ×ÅÒËÁ GSDL: $gsdlpath"
     123else
     124    echo "Checking GSDL: $gsdlpath"
     125fi
     126if [ ! -f "${gsdlpath}/setup.bash" ] ; then
    75127    echo
    76128    if [ "$glilang" == "es" ]; then
     
    92144
    93145# Setup Greenstone, unless it has already been done
    94 if [ "$GSDL3HOME" == "" ]; then
    95     pushd $gsdl3path > /dev/null
    96     source gs3-setup.sh
     146if [ "$GSDLHOME" == "" ]; then
     147    pushd $gsdlpath > /dev/null
     148    source setup.bash
    97149    popd > /dev/null
    98150fi
     
    291343# -Xloggc:<file>   Write garbage collection log
    292344
     345echo Using GSDLHOME: $GSDLHOME
     346
    293347$javapath -classpath classes/:GLI.jar:lib/apache.jar:lib/jp.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -gsdl3 $GSDL3HOME -wget $wgetpath $*
    294348
Note: See TracChangeset for help on using the changeset viewer.