Changeset 12225 for trunk/gli/gli.sh


Ignore:
Timestamp:
2006-07-14T10:03:04+12:00 (18 years ago)
Author:
davidb
Message:

Instead of GLI saying it needs to restart when the language interface has changed,
it now exits (having gone through the usual routine that saves the session etc)
with level 2. This is then used by gli.sh/gli.bat to loop around again and
relaunch GLI. Any other exit status, and gli.sh/gli.bat stops as before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/gli.sh

    r11801 r12225  
    254254    echo "Running the Greenstone Librarian Interface..."
    255255fi
     256
     257stop_gli=0
     258while [ "$stop_gli" = "0" ] ; do
    256259
    257260# Other arguments you can provide to GLI to work around memory limitations, or debug
     
    263266# -Xloggc:<file>   Write garbage collection log
    264267
    265 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -wget $wgetpath $*
     268
     269
     270  $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -wget $wgetpath $*
     271  exit_status=$?
     272
     273  if [ "$exit_status" != "2" ] ; then
     274    stop_gli=1
     275  else
     276    echo
     277    if [ "$glilang" == "es" ]; then
     278        echo "Restarting/Ejecutando la Interfaz de la Biblioteca Digital Greenstone..."
     279    elif [ "$glilang" == "fr" ]; then
     280        echo "Restarting/Exécution de Greenstone Librarian Interface"
     281    elif [ "$glilang" == "ru" ]; then
     282        echo "Restarting/ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone..."
     283    else
     284        echo "Restarting the Greenstone Librarian Interface..."
     285    fi
     286
     287  fi
     288done
    266289
    267290if [ "$glilang" == "es" ]; then
Note: See TracChangeset for help on using the changeset viewer.