Changeset 35417 for main/trunk


Ignore:
Timestamp:
2021-09-17T17:05:12+12:00 (3 years ago)
Author:
davidb
Message:

Some fine-tuning of echo statements, including a test to determine if install is Greenstone2 or Greenstone2-Buildtime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bash

    r34111 r35417  
    6868fi
    6969
     70 
    7071if test -n "$gsdl_not_sourced" ; then
    7172  case "$gsdllang" in
     
    115116  case "$gsdllang" in
    116117  "es")
    117     echo '¡Su ambiente ya está listo para Greenstone!' | eval $gsdliconv
     118    echo "¡Su ambiente ya está listo para $GSDL2_DESC!" | eval $gsdliconv
    118119  ;;
    119120  "fr")
    120     echo 'Votre environnement est déjà préparé pour Greenstone!' | eval $gsdliconv
     121    echo "Votre environnement est déjà préparé pour $GSDL2_DESC!" | eval $gsdliconv
    121122 ;;
    122123  "ru")
    123     echo '÷ÁÛÅ ÏËÒÕÖÅÎÉÅ ÕÖÅ ÎÁÓÔÒÏÅÎÏ ÄÌÑ Greenstone!' | eval $gsdliconv
     124    echo "÷ÁÛÅ ÏËÒÕÖÅÎÉÅ ÕÖÅ ÎÁÓÔÒÏÅÎÏ ÄÌÑ $GSDL2_DESC!" | eval $gsdliconv
    124125  ;;
    125126  *)
    126     echo 'Your environment is already set up for Greenstone!'
     127    echo "Your environment is already set up for $GSDL2_DESC!"
    127128  ;;
    128129  esac
     
    150151  GSDLHOME=`pwd`
    151152  export GSDLHOME
     153
     154  GSDL2_DESC="Greenstone2"
     155  if test ${GSDLHOME##*/} = "gs2build" ; then
     156      GSDL2_DESC="$GSDL2_DESC-Buildtime"
     157  fi
     158  export GSDL2_DESC
    152159
    153160  if test "x$GSDLOS" = "x" ; then
     
    243250  case "$gsdllang" in
    244251    "es")
    245       echo 'Su ambiente ha sido configurado para correr los programas Greenstone.' | eval $gsdliconv
     252      echo "Su ambiente ha sido configurado para correr los programas $GSDL2_DESC." | eval $gsdliconv
    246253    ;;
    247254    "fr")
    248       echo 'Votre environnement a été configuére avec succès pour exécuter Greenstone' | eval $gsdliconv
     255      echo "Votre environnement a été configuére avec succès pour exécuter $GSDL2_DESC" | eval $gsdliconv
    249256    ;;
    250257    "ru")
    251258eval $gsdliconv <<EOF
    252 ÷ÁÛÅ ÏËÒÕÖÅÎÉÅ ÂÙÌÏ ÕÓÐÅÛÎÏ ÎÁÓÔÒÏÅÎÏ, ÞÔÏÂÙ ÕÓÔÁÎÏ×ÉÔØ Greenstone
     259÷ÁÛÅ ÏËÒÕÖÅÎÉÅ ÂÙÌÏ ÕÓÐÅÛÎÏ ÎÁÓÔÒÏÅÎÏ, ÞÔÏÂÙ ÕÓÔÁÎÏ×ÉÔØ $GSDL2_DESC
    253260EOF
    254261    ;;
    255262    *)
    256       echo 'Your environment has successfully been set up to run Greenstone'
     263      echo "Your environment has successfully been set up to run $GSDL2_DESC"
    257264    ;;
    258265  esac
     
    370377if [ -d "$GSDLHOME/bin/$GSDLOS$GSDLARCH/perl" ] ; then
    371378
    372     if [ -d "$GSDLHOME/bin/$GSDLOS$GSDLARCH/perl/bin" ] ; then
    373         PERLPATH=$GSDLHOME/bin/$GSDLOS$GSDLARCH/perl/bin
    374         export PERLPATH
    375         PATH=$PERLPATH:$PATH
    376         export PATH
    377     fi   
     379    if [ -d "$GSDLHOME/bin/$GSDLOS$GSDLARCH/perl/bin" ] ; then
     380    PERLPATH=$GSDLHOME/bin/$GSDLOS$GSDLARCH/perl/bin
     381    export PERLPATH
     382    PATH=$PERLPATH:$PATH
     383    export PATH
     384    fi   
    378385
    379386    if test "$GSDLOS" = "linux" ; then
     
    393400
    394401    echo ""
    395     echo "***** Perl installation detected inside Greenstone."
    396     echo "Command-line scripts need to be run with \"perl -S ...\""
    397     echo "    e.g. perl -S import.pl -removeold demo"
    398     echo ""
     402    echo "  - Detected Perl installation inside $GSDL2_DESC."
     403#    echo "Command-line scripts need to be run with \"perl -S ...\""
     404#    echo "    e.g. perl -S import.pl -removeold demo"
     405#    echo ""
    399406# else we may in future need to update PERL5LIB with some other (further) locations
    400407fi
Note: See TracChangeset for help on using the changeset viewer.