Changeset 19392
- Timestamp:
- 2009-05-11T18:42:47+12:00 (15 years ago)
- Location:
- gli/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/client-gli.sh
r19355 r19392 52 52 53 53 ## -------- Run the Greenstone Librarian Interface -------- 54 55 # This script must be run from within the directory in which it lives 56 thisdir=`pwd` 57 if [ ! -f "${thisdir}/client-gli.sh" ]; then 58 if [ "$glilang" = "es" ]; then 59 echo "Este guión deberá ejecutarse desde el directorio en el que reside." 60 elif [ "$glilang" = "fr" ]; then 61 echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve." 62 elif [ "$glilang" = "ru" ]; then 63 echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ" 64 else 65 echo "This script must be run from the directory in which it resides." 66 fi 67 exit 1 68 fi 54 # Need to run this script from its own directory instead of whichever directory it may be called from 55 #currentdir=$(cd `dirname "$0"` && pwd) 56 thisdir="`dirname \"$0\"`" 57 thisdir="`cd \"$thisdir\" && pwd`" 58 cd "$thisdir" 69 59 70 60 ## ---- findJava ---- -
gli/trunk/gli.sh
r19355 r19392 103 103 104 104 ## -------- Run the Greenstone Librarian Interface -------- 105 106 # This script must be run from within the directory in which it lives 107 thisdir=`pwd` 108 if [ ! -f "${thisdir}/gli.sh" ]; then 109 if [ "$glilang" = "es" ]; then 110 echo "Este guión deberá ejecutarse desde el directorio en el que reside." 111 elif [ "$glilang" = "fr" ]; then 112 echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve." 113 elif [ "$glilang" = "ru" ]; then 114 echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ" 115 else 116 echo "This script must be run from the directory in which it resides." 117 fi 118 exit 1 119 fi 105 # Need to run this script from its own directory instead of whichever directory it may be called from 106 #currentdir=$(cd `dirname "$0"` && pwd) 107 thisdir="`dirname \"$0\"`" 108 thisdir="`cd \"$thisdir\" && pwd`" 109 cd "$thisdir" 120 110 121 111
Note:
See TracChangeset
for help on using the changeset viewer.