Index: in/trunk/gs2build/setup.bash
===================================================================
--- /main/trunk/gs2build/setup.bash	(revision 24382)
+++ 	(revision )
@@ -1,209 +1,0 @@
-# if this file is executed, /bin/sh is used, as we don't start with #!
-# this should work under ash, bash, zsh, ksh, sh style shells.
-gsdllang=""
-# encoding inputs and outputs
-gsdltoenc=""
-gsdlfromenc=""
-
-# see if the shell has any language environment variables set
-# see locale(7) manpage for this ordering.
-if test ! -z "$LC_ALL" ; then
-  gsdllang="$LC_ALL"
-elif test ! -z "$LANG"; then
-  gsdllang="$LANG"
-fi
-
-
-# note... all our output strings have the charset hard-coded, but
-# people may be using a different encoding in their terminal. LANG
-# strings look like "en_NZ.UTF-8".
-
-# Determine the requested output encoding
-case $gsdllang in
-  *.*)
-    gsdltoenc=`echo $gsdllang | sed 's/.*\.//'`
-    ;;
-esac
-
-# Our french and spanish strings are currently in iso-8859-1 encoding.
-case $gsdllang in
-  fr*|FR*)
-    gsdllang=fr
-    gsdlfromenc="iso-8859-1"
-  ;;
-  es*|ES*)
-    gsdllang=es
-    gsdlfromenc="iso-8859-1"
-  ;;
-  ru*|RU*)
-    gsdllang=ru
-    gsdlfromenc="koi8r"
-  ;;
-  *) # default
-    gsdllang=en
-    gsdlfromenc="iso-8859-1"
-  ;;
-esac  
-
-# "iconv" is the program for converting text between encodings.
-gsdliconv=`which iconv 2>/dev/null`
-if test $? -ne 0 || test ! -x "$gsdliconv" || test -z "$gsdlfromenc" || test -z "$gsdltoenc"; then
-# we can't convert encodings from some reason
-  gsdliconv="cat"
-else
-# add the encodings
-  gsdliconv="$gsdliconv -f $gsdlfromenc -t $gsdltoenc"
-fi
-
-# make sure we are sourced, and not run
-
-if test "$0" != "`echo $0 | sed s/setup\.bash//`" ; then
-# if $0 contains "setup.bash" we've been run... $0 is shellname if sourced.
-# One exception is zsh has an option to set it temporarily to the script name
-  if test -z "$ZSH_NAME" ; then
-  # we aren't using zsh
-  gsdl_not_sourced=true
-  fi
-fi
-
-if test -n "$gsdl_not_sourced" ; then
-  case "$gsdllang" in
- "es")
-eval $gsdliconv <<EOF
-      Error: Asegúrese de compilar este guión, no de ejecutarlo. P. ej.:
-         $ source setup.bash
-      o
-         $ . ./setup.bash
-      no
-         $ ./setup.bash
-EOF
-  ;;
-  "fr")
-eval $gsdliconv <<EOF
-      Erreur: Assurez-vous de "sourcer" le script, plutôt que de l'exécuter. Ex:
-         $ source setup.bash
-      ou
-         $ . ./setup.bash
-      pas
-         $ ./setup.bash
-EOF
-  ;;
-  "ru")
-eval $gsdliconv <<EOF
-      ïÛÉÂËÁ: õÄÏÓÔÏ×ÅÒØÔÅÓØ × ÉÓÔÏÞÎÉËÅ ÜÔÏÇÏ ÓËÒÉÐÔÁ. îÅ ÉÓÐÏÌÎÑÊÔÅ ÅÇÏ.
-      îÁÐÒÉÍÅÒ:
-         $ source setup.bash
-      ÉÌÉ
-         $ . ./setup.bash
-      ÎÅÔ
-         $ ./setup.bash
-EOF
-  ;;
-  *)
-eval $gsdliconv <<EOF
-	Error: Make sure you source this script, not execute it. Eg:
-		$ source setup.bash
-	or
-		$ . ./setup.bash
-	not
-		$ ./setup.bash
-EOF
-  ;;
-  esac
-elif test -n "$GSDLHOME" ; then
-  case "$gsdllang" in
-  "es")
-    echo '¡Su ambiente ya está listo para Greenstone!' | eval $gsdliconv
-  ;;
-  "fr")
-    echo 'Votre environnement est déjà préparé pour Greenstone!' | eval $gsdliconv
- ;;
-  "ru")
-    echo '÷ÁÛÅ ÏËÒÕÖÅÎÉÅ ÕÖÅ ÎÁÓÔÒÏÅÎÏ ÄÌÑ Greenstone!' | eval $gsdliconv
-  ;;
-  *)
-    echo 'Your environment is already set up for Greenstone!'
-  ;;
-  esac
-elif test ! -f setup.bash ; then
-  case "$gsdllang" in
-    "es")
-eval $gsdliconv <<EOF
-Usted debe compilar el guión desde el interior del directorio de inicio
-de Greenstone.
-EOF
-  ;;
-  "fr")
-echo 'Vous devez trouver la source du script dans le répertoire de base de Greenstone' | eval $gsdliconv
-  ;;
-  "ru")
-eval $gsdliconv <<EOF
-÷ÁÍ ÎÅÏÂÈÏÄÉÍ ÉÓÔÏÞÎÉË ÓËÒÉÐÔÁ ÉÚ ÂÁÚÏ×ÏÊ ÄÉÒÅËÔÏÒÉÉ Greenstone
-EOF
-  ;;
-  *)
-    echo 'You must source the script from within the Greenstone home directory'
-  ;;
-  esac
-else
-  GSDLHOME=`pwd`
-  export GSDLHOME
-  GSDLOS=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
-  # check for running bash under cygwin
-  if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ;
-  then
-    GSDLOS=windows
-  fi
-  export GSDLOS
-
-  # check for running bash under mingw
-  if test "`echo $GSDLOS | sed 's/mingw//'`" != "$GSDLOS" ;
-  then
-    GSDLOS=windows
-  fi
-  export GSDLOS
-
-  PATH=$PATH:$GSDLHOME/bin/script:$GSDLHOME/bin/$GSDLOS
-  export PATH
-  MANPATH=$MANPATH:$GSDLHOME/packages/mg/man
-  export MANPATH
-  case "$gsdllang" in
-    "es")
-      echo 'Su ambiente ha sido configurado para correr los programas Greenstone.' | eval $gsdliconv
-    ;;
-    "fr")
-      echo 'Votre environnement a été configuére avec succès pour exécuter Greenstone' | eval $gsdliconv
-    ;;
-    "ru")
-eval $gsdliconv <<EOF
-÷ÁÛÅ ÏËÒÕÖÅÎÉÅ ÂÙÌÏ ÕÓÐÅÛÎÏ ÎÁÓÔÒÏÅÎÏ, ÞÔÏÂÙ ÕÓÔÁÎÏ×ÉÔØ Greenstone
-EOF
-    ;;
-    *)
-      echo 'Your environment has successfully been set up to run Greenstone'
-    ;;
-  esac
-fi
-unset gsdl_not_sourced
-unset gsdliconv
-unset gsdlfromenc
-unset gsdltoenc
-
-if test -e ext; then
-  for gsdl_ext in ext/*; do
-    if test -d $gsdl_ext; then
-      cd $gsdl_ext > /dev/null
-      if test -e setup.bash ; then
-        source ./setup.bash
-      fi
-      cd ../..
-    fi
-  done
-fi
-
-if [ -e local ] ; then
-  export PATH=$GSDLHOME/local/bin:$PATH
-  export LD_LIBRARY_PATH=$GSDLHOME/local/lib:$LD_LIBRARY_PATH
-fi
-
-
