@echo off set GSDLLANG=en if "%OS%" == "Windows_NT" goto WinNT if "%OS%" == "" goto Win95 if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraciвn - no se ha establecido la RUTA. if "%GSDLLANG%" == "fr" echo EchВc de l'installation - votre variable PATH n'a pas ВtВ ajustВe if "%GSDLLANG%" == "ru" echo Установка не удалась - ПУТЬ не был установлен goto End :WinNT set GSDLHOME=**GSDLHOME** set GSDLOS=windows REM Override Imagemagick and Ghostscript paths to the bundled applications shipped with greenstone if they exists otherwise use default environment variables. if exist "%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll" set GS_DLL=%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll if exist "%GSDLHOME%\bin\windows\ghostscript\lib\*.*" set GS_LIB=%GSDLHOME%\bin\windows\ghostscript\lib if exist "%GSDLHOME%\bin\windows\ghostscript\bin\*.*" set PATH=%GSDLHOME%\bin\windows\ghostscript\bin;%PATH% if exist "%GSDLHOME%\bin\windows\imagemagick\*.*" set PATH=%GSDLHOME%\bin\windows\imagemagick;%PATH% set PATH=%GSDLHOME%\bin\windows\perl\bin;%GSDLHOME%\bin\windows;%GSDLHOME%\bin\script;%PATH% goto Success :Win95 if "%1" == "SetEnv" goto Win95Env REM We'll invoke a second copy of the command processor to make REM sure there's enough environment space COMMAND /E:2048 /K %0 SetEnv goto End :Win95Env set GSDLHOME=**GSDLHOME** set GSDLOS=windows REM Override Imagemagick and Ghostscript paths to the bundled applications shipped with greenstone if they exists otherwise use default environment variables. if exist "%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll" set GS_DLL="%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll" if exist "%GSDLHOME%\bin\windows\ghostscript\lib\*.*" set GS_LIB="%GSDLHOME%\bin\windows\ghostscript\lib" if exist "%GSDLHOME%\bin\windows\ghostscript\bin\*.*" set PATH="%GSDLHOME%\bin\windows\ghostscript\bin";"%PATH%" if exist "%GSDLHOME%\bin\windows\imagemagick\*.*" set PATH="%GSDLHOME%\bin\windows\imagemagick";"%PATH%" set PATH="%GSDLHOME%\bin\windows\perl\bin";"%GSDLHOME%\bin\windows";"%GSDLHOME%\bin\script";"%PATH%" goto Success :Success if "%GSDLLANG%" == "en" echo Your environment has successfully been set up to run Greenstone. if "%GSDLLANG%" == "en" echo Note that these settings will only have effect within this MS-DOS if "%GSDLLANG%" == "en" echo session. You will therefore need to rerun setup.bat if you want if "%GSDLLANG%" == "en" echo to run Greenstone programs from a different MS-DOS session. if "%GSDLLANG%" == "es" echo Su ambiente ha sido configurado para correr los programas Greenstone. if "%GSDLLANG%" == "es" echo Recuerde que estos ajustes гnicamente tendrаn efecto dentro de esta sesiвn if "%GSDLLANG%" == "es" echo MS-DOS. Por lo tanto deberа ejecutar nuevamente setup.bat si desea if "%GSDLLANG%" == "es" echo correr los programas de Greenstone desde una sesiвn MS-DOS diferente. if "%GSDLLANG%" == "fr" echo Votre environnement a ВtВ configuВre avec succКs pour exВcuter Greenstone if "%GSDLLANG%" == "fr" echo Notez que ces paramКtrages n'auront d'effet que dans cette session MS-DOS. if "%GSDLLANG%" == "fr" echo Vous devrez par consВquent rВexВcuter setup.bat si vous voulez faire if "%GSDLLANG%" == "fr" echo lancer des programmes Greenstone dans une autre session MS-DOS. if "%GSDLLANG%" == "ru" echo Ваше окружение было успешно настроено, чтобы установить Greenstone Обратите if "%GSDLLANG%" == "ru" echo внимание, что эти назначения будут только иметь эффект в пределах этого MS DOS if "%GSDLLANG%" == "ru" echo сессия. Вы будете поэтому должны повторно управлять setup.bat, если Вы хотите if "%GSDLLANG%" == "ru" echo управлять программами Зелёных изверженных пород от различной сессии MS DOS. :End :: test writability of GSDLHOME @call "%GSDLHOME%\bin\script\checkwritability.bat"