Changeset 6759
- Timestamp:
- 2004-02-10T11:55:48+13:00 (20 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/setup.bash
r2943 r6759 1 1 # if this file is executed, /bin/sh is used, as we don't start with #! 2 2 # this should work under ash, bash, zsh, ksh, sh style shells. 3 gsdllang=en 3 4 4 5 # make sure we are sourced, and not run … … 14 15 15 16 if test -n "$gsdl_not_sourced" ; then 16 echo " Error: Make sure you source this script, not execute it. Eg:" 17 echo " $ source setup.bash" 18 echo " or" 19 echo " $ . ./setup.bash" 20 echo " not" 21 echo " $ ./setup.bash" 17 if [ "$gsdllang" == "fr" ]; then 18 echo "-- Still coming --" 19 else 20 echo " Error: Make sure you source this script, not execute it. Eg:" 21 echo " $ source setup.bash" 22 echo " or" 23 echo " $ . ./setup.bash" 24 echo " not" 25 echo " $ ./setup.bash" 26 fi 22 27 elif test -n "$GSDLHOME" ; then 23 echo "Your environment is already set up for Greenstone!" 28 if [ "$gsdllang" == "fr" ]; then 29 echo "Votre environnement est déjà préparé pour Greenstone!" 30 else 31 echo "Your environment is already set up for Greenstone!" 32 fi 24 33 elif test ! -f setup.bash ; then 25 echo "You must source the script from within the Greenstone home directory" 34 if [ "$gsdllang" == "fr" ]; then 35 echo "Vous devez trouver la source du script dans le répertoire de base de Greenstone" 36 else 37 echo "You must source the script from within the Greenstone home directory" 38 fi 26 39 else 27 40 GSDLHOME=`pwd` … … 39 52 MANPATH=$MANPATH:$GSDLHOME/packages/mg/man 40 53 export MANPATH 41 echo "Your environment has successfully been set up to run Greenstone" 54 if [ "$gsdllang" == "fr" ]; then 55 echo "Votre environnement a été configuére avec succès pour exécuter Greenstone" 56 else 57 echo "Your environment has successfully been set up to run Greenstone" 58 fi 42 59 fi 43 60 unset gsdl_not_sourced -
trunk/gsdl/setup.csh
r6469 r6759 1 setenv GSDLLANG en 1 2 setenv GSDLHOME `pwd` 2 3 setenv GSDLOS `uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 7 8 setenv MANPATH $GSDLHOME/packages/mg/man 8 9 endif 9 echo "Your environment has successfully been set up to run Greenstone" 10 if ("$GSDLLANG" == "fr") then 11 echo "Votre environnement a été configuére avec succès pour exécuter Greenstone" 12 else 13 echo "Your environment has successfully been set up to run Greenstone" 14 endif
Note:
See TracChangeset
for help on using the changeset viewer.