source: gsdl/trunk/setup.bat@ 14843

Last change on this file since 14843 was 14843, checked in by oranfry, 16 years ago

bringing in the change from the 2.75 branch, which checks for writatbility on GSDLHOME

  • Property svn:mime-type set to application/octet-stream
File size: 2.6 KB
Line 
1@echo off
2set GSDLLANG=en
3
4if "%OS%" == "Windows_NT" goto WinNT
5if "%OS%" == "" goto Win95
6if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
7if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
8if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
9if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ 〠« áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
10goto End
11
12:WinNT
13set GSDLHOME=**GSDLHOME**
14set GSDLOS=windows
15set PATH=%GSDLHOME%\bin\windows\perl\bin;%GSDLHOME%\bin\windows;%GSDLHOME%\bin\script;%PATH%
16goto Success
17
18:Win95
19if "%1" == "SetEnv" goto Win95Env
20REM We'll invoke a second copy of the command processor to make
21REM sure there's enough environment space
22COMMAND /E:2048 /K %0 SetEnv
23goto End
24
25:Win95Env
26set GSDLHOME=**GSDLHOME**
27set GSDLOS=windows
28set PATH="%GSDLHOME%\bin\windows\perl\bin";"%GSDLHOME%\bin\windows";"%GSDLHOME%\bin\script";"%PATH%"
29goto Success
30
31
32:Success
33if "%GSDLLANG%" == "en" echo Your environment has successfully been set up to run Greenstone.
34if "%GSDLLANG%" == "en" echo Note that these settings will only have effect within this MS-DOS
35if "%GSDLLANG%" == "en" echo session. You will therefore need to rerun setup.bat if you want
36if "%GSDLLANG%" == "en" echo to run Greenstone programs from a different MS-DOS session.
37
38if "%GSDLLANG%" == "es" echo Su ambiente ha sido configurado para correr los programas Greenstone.
39if "%GSDLLANG%" == "es" echo Recuerde que estos ajustes £nicamente tendr n efecto dentro de esta sesi¢n
40if "%GSDLLANG%" == "es" echo MS-DOS. Por lo tanto deber  ejecutar nuevamente setup.bat si desea
41if "%GSDLLANG%" == "es" echo correr los programas de Greenstone desde una sesi¢n MS-DOS diferente.
42
43if "%GSDLLANG%" == "fr" echo Votre environnement a ‚t‚ configu‚re avec succŠs pour ex‚cuter Greenstone
44if "%GSDLLANG%" == "fr" echo Notez que ces paramŠtrages n'auront d'effet que dans cette session MS-DOS.
45if "%GSDLLANG%" == "fr" echo Vous devrez par cons‚quent r‚ex‚cuter setup.bat si vous voulez faire
46if "%GSDLLANG%" == "fr" echo lancer des programmes Greenstone dans une autre session MS-DOS.
47
48if "%GSDLLANG%" == "ru" echo ‚ è¥ ®ªà㊥­š¥ ¡ë«® ãᯥ譮 ­ áâ஥­®, ç⮡ë ãáâ ­®¢šâì Greenstone Ž¡à âšâ¥
49if "%GSDLLANG%" == "ru" echo ¢­š¬ ­š¥, çâ® íâš ­ §­ ç¥­šï ¡ã€ãâ ⮫쪮 š¬¥âì íä䥪⠢ ¯à¥€¥« å í⮣® MS DOS
50if "%GSDLLANG%" == "ru" echo á¥áášï. ‚ë ¡ã€¥â¥ ¯®í⮬㠀®«Š­ë ¯®¢â®à­® ã¯à ¢«ïâì setup.bat, ¥á«š ‚ë å®âšâ¥
51if "%GSDLLANG%" == "ru" echo ã¯à ¢«ïâì ¯à®£à ¬¬ ¬š ‡¥«ñ­ëå š§¢¥àŠ¥­­ëå ¯®à®€ ®â à §«šç­®© á¥áášš MS DOS.
52
53:End
54
55:: test writability of GSDLHOME
56@call "%GSDLHOME%\bin\script\checkwritability.bat"
Note: See TracBrowser for help on using the repository browser.