Changeset 8065
- Timestamp:
- 2004-08-26T12:19:13+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/gli4gs3.sh
r7853 r8065 45 45 46 46 47 ## ---- Determine GSDL HOME ----47 ## ---- Determine GSDL3HOME ---- 48 48 gsdl3path= 49 49 … … 54 54 gsdl3path=$GSDL3HOME 55 55 56 # If it is not set, assume that the GLI is installed as a subdirectory of Greenstone 56 # If it is not set, assume that the GLI is installed as a subdirectory of Greenstone 3 57 57 else 58 58 pushd .. > /dev/null … … 62 62 fi 63 63 64 # Check that the Greenstone 3 installation looks OK 65 if [ "$glilang" == "es" ]; then 66 echo "Revisando GSDL3: $gsdl3path" 67 elif [ "$glilang" == "fr" ]; then 68 echo "Vérification de GSDL3: $gsdl3path" 69 elif [ "$glilang" == "ru" ]; then 70 echo "ðÒÏ×ÅÒËÁ GSDL3: $gsdl3path" 71 else 72 echo "Checking GSDL3: $gsdl3path" 73 fi 74 if [ ! -f "${gsdl3path}/gs3-setup.sh" ] ; then 75 echo 76 if [ "$glilang" == "es" ]; then 77 echo "No se pudo encontrar la instalación de Greenstone 3 o está incompleta." 78 echo "Trate de reinstalar Greenstone 3 y a continuación ejecute nuevamente" 79 echo "este guión." 80 elif [ "$glilang" == "fr" ]; then 81 echo "L'installation de Greenstone 3 est introuvable ou incomplète." 82 echo "Essayez de réinstaller Greenstone 3 et exécutez ce script à nouveau." 83 elif [ "$glilang" == "ru" ]; then 84 echo "éÎÓÔÁÌÌÑÃÉÑ Greenstone 3 ÎÅ ÂÙÌÁ ÎÁÊÄÅÎÁ ÉÌÉ ÏÎÁ ÎÅÐÏÌÎÁ." 85 echo "ðÏÐÒÏÂÕÊÔÅ ÐÏ×ÔÏÒÎÏ ÕÓÔÁÎÏ×ÉÔØ Greenstone 3, Á ÚÁÔÅÍ ××ÅÓÔÉ ÜÔÏÔ ÓËÒÉÐÔ ÓÎÏ×Á." 86 else 87 echo "The Greenstone 3 installation could not be found, or is incomplete." 88 echo "Try reinstalling Greenstone 3 then running this script again." 89 fi 90 exit 1 91 fi 92 93 # Setup Greenstone 3, unless it has already been done 94 if [ "$GSDL3HOME" == "" ]; then 95 pushd $gsdl3path > /dev/null 96 source gs3-setup.sh 97 popd > /dev/null 98 fi 99 100 101 ## ---- Determine GSDLHOME ---- 102 gsdlpath= 103 104 # Some users may set the above line manually 105 if [ "$gsdlpath" == "" ]; then 106 # Check the environment variable first 107 if [ "$GSDLHOME" != "" ]; then 108 gsdlpath=$GSDLHOME 109 110 # If it is not set, assume that the gs2extra subdirectory of Greenstone 3 exists 111 else 112 gsdlpath=$GSDL3HOME/gs2extra 113 fi 114 fi 115 64 116 # Check that the Greenstone installation looks OK 65 117 if [ "$glilang" == "es" ]; then 66 echo "Revisando GSDL 3: $gsdl3path"67 elif [ "$glilang" == "fr" ]; then 68 echo "Vérification de GSDL 3: $gsdl3path"69 elif [ "$glilang" == "ru" ]; then 70 echo "ðÒÏ×ÅÒËÁ GSDL 3: $gsdl3path"71 else 72 echo "Checking GSDL 3: $gsdl3path"73 fi 74 if [ ! -f "${gsdl 3path}/gs3-setup.sh" ] ; then118 echo "Revisando GSDL: $gsdlpath" 119 elif [ "$glilang" == "fr" ]; then 120 echo "Vérification de GSDL: $gsdlpath" 121 elif [ "$glilang" == "ru" ]; then 122 echo "ðÒÏ×ÅÒËÁ GSDL: $gsdlpath" 123 else 124 echo "Checking GSDL: $gsdlpath" 125 fi 126 if [ ! -f "${gsdlpath}/setup.bash" ] ; then 75 127 echo 76 128 if [ "$glilang" == "es" ]; then … … 92 144 93 145 # Setup Greenstone, unless it has already been done 94 if [ "$GSDL 3HOME" == "" ]; then95 pushd $gsdl 3path > /dev/null96 source gs3-setup.sh146 if [ "$GSDLHOME" == "" ]; then 147 pushd $gsdlpath > /dev/null 148 source setup.bash 97 149 popd > /dev/null 98 150 fi … … 291 343 # -Xloggc:<file> Write garbage collection log 292 344 345 echo Using GSDLHOME: $GSDLHOME 346 293 347 $javapath -classpath classes/:GLI.jar:lib/apache.jar:lib/jp.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -gsdl3 $GSDL3HOME -wget $wgetpath $* 294 348
Note:
See TracChangeset
for help on using the changeset viewer.