Changeset 22005

Show
Ignore:
Timestamp:
30.04.2010 11:20:32 (9 years ago)
Author:
sjm84
Message:

This script can now be run from anywhere

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/admin/gs3-admin.sh

    r18204 r22005  
    1010 
    1111##  -------- Run the Greenstone Administrator Interface -------- 
     12# Need to run this script from its own directory instead of whichever directory it may be called from 
    1213 
    13 # This script must be run from within the directory in which it lives 
    14 thisdir=`pwd` 
    15 if [ ! -f "${thisdir}/gs3-admin.sh" ]; then 
    16     if [ "$gailang" == "es" ]; then 
    17         echo "Este guión deberá ejecutarse desde el directorio en el que reside." 
    18     elif [ "$gailang" == "fr" ]; then 
    19     echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve." 
    20     elif [ "$gailang" == "ru" ]; then 
    21     echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ" 
    22     else 
    23     echo "This script must be run from the directory in which it resides." 
    24     fi 
    25     exit 1 
    26 fi 
    27  
     14thisdir="`dirname \"$0\"`" 
     15thisdir="`cd \"$thisdir\" && pwd`" 
     16cd "$thisdir" 
    2817 
    2918##  ---- Determine GSDL3HOME ----