[14843] | 1 | @echo off
|
---|
[17948] | 2 | pushd "%CD%"
|
---|
| 3 | CD /D "%~dp0"
|
---|
[7020] | 4 | set GSDLLANG=en
|
---|
[6764] | 5 |
|
---|
[17948] | 6 | echo.
|
---|
| 7 | echo.
|
---|
| 8 | echo #### #
|
---|
| 9 | echo ## #
|
---|
| 10 | echo # ### ## ## ### ### ### ## ### ##
|
---|
| 11 | echo # # # #### #### # # ## # # # # # ####
|
---|
| 12 | echo ## # # # # # # # # # # # # #
|
---|
| 13 | echo #### # ### ### # # ### ## ## # # ###
|
---|
| 14 | echo (C) 2008, New Zealand Digital Library Project
|
---|
| 15 | echo.
|
---|
| 16 | echo.
|
---|
| 17 | echo.
|
---|
| 18 |
|
---|
[3041] | 19 | if "%OS%" == "Windows_NT" goto WinNT
|
---|
| 20 | if "%OS%" == "" goto Win95
|
---|
[7020] | 21 | if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
|
---|
| 22 | if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
|
---|
| 23 | if "%GSDLLANG%" == "fr" echo Echc de l'installation - votre variable PATH n'a pas t ajuste
|
---|
| 24 | if "%GSDLLANG%" == "ru" echo áâ ®¢ª ¥ 〠« áì - ¥ ¡ë« ãáâ ®¢«¥
|
---|
[3041] | 25 | goto End
|
---|
| 26 |
|
---|
[17305] | 27 | :WinNT
|
---|
[17948] | 28 | set GSDLHOME=%CD%
|
---|
[3403] | 29 | set GSDLOS=windows
|
---|
[17226] | 30 |
|
---|
| 31 | REM Override Imagemagick and Ghostscript paths to the bundled applications shipped with greenstone if they exists otherwise use default environment variables.
|
---|
| 32 | if exist "%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll" set GS_DLL=%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll
|
---|
| 33 | if exist "%GSDLHOME%\bin\windows\ghostscript\lib\*.*" set GS_LIB=%GSDLHOME%\bin\windows\ghostscript\lib
|
---|
| 34 | if exist "%GSDLHOME%\bin\windows\ghostscript\bin\*.*" set PATH=%GSDLHOME%\bin\windows\ghostscript\bin;%PATH%
|
---|
| 35 | if exist "%GSDLHOME%\bin\windows\imagemagick\*.*" set PATH=%GSDLHOME%\bin\windows\imagemagick;%PATH%
|
---|
| 36 |
|
---|
[17305] | 37 | if "%GS_CP_SET%" == "yes" goto Success
|
---|
[17226] | 38 | set PATH=%GSDLHOME%\bin\windows\perl\bin;%GSDLHOME%\bin\windows;%GSDLHOME%\bin\script;%PATH%
|
---|
[17305] | 39 | set GS_CP_SET=yes
|
---|
[3041] | 40 | goto Success
|
---|
| 41 |
|
---|
| 42 | :Win95
|
---|
[3403] | 43 | if "%1" == "SetEnv" goto Win95Env
|
---|
| 44 | REM We'll invoke a second copy of the command processor to make
|
---|
| 45 | REM sure there's enough environment space
|
---|
[3809] | 46 | COMMAND /E:2048 /K %0 SetEnv
|
---|
[3403] | 47 | goto End
|
---|
| 48 |
|
---|
| 49 | :Win95Env
|
---|
[17948] | 50 | set GSDLHOME=%CD%
|
---|
[3403] | 51 | set GSDLOS=windows
|
---|
[17226] | 52 |
|
---|
| 53 | REM Override Imagemagick and Ghostscript paths to the bundled applications shipped with greenstone if they exists otherwise use default environment variables.
|
---|
| 54 | if exist "%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll" set GS_DLL="%GSDLHOME%\bin\windows\ghostscript\bin\gsdll32.dll"
|
---|
| 55 | if exist "%GSDLHOME%\bin\windows\ghostscript\lib\*.*" set GS_LIB="%GSDLHOME%\bin\windows\ghostscript\lib"
|
---|
| 56 | if exist "%GSDLHOME%\bin\windows\ghostscript\bin\*.*" set PATH="%GSDLHOME%\bin\windows\ghostscript\bin";"%PATH%"
|
---|
| 57 | if exist "%GSDLHOME%\bin\windows\imagemagick\*.*" set PATH="%GSDLHOME%\bin\windows\imagemagick";"%PATH%"
|
---|
[17305] | 58 |
|
---|
| 59 | if "%GS_CP_SET%" == "yes" goto Success
|
---|
[17226] | 60 | set PATH="%GSDLHOME%\bin\windows\perl\bin";"%GSDLHOME%\bin\windows";"%GSDLHOME%\bin\script";"%PATH%"
|
---|
[17305] | 61 | set GS_CP_SET=yes
|
---|
[14843] | 62 | goto Success
|
---|
[3041] | 63 |
|
---|
[14843] | 64 |
|
---|
[3041] | 65 | :Success
|
---|
[17909] | 66 | if "%GSDLLANG%" == "en" echo.
|
---|
[7020] | 67 | if "%GSDLLANG%" == "en" echo Your environment has successfully been set up to run Greenstone.
|
---|
| 68 | if "%GSDLLANG%" == "en" echo Note that these settings will only have effect within this MS-DOS
|
---|
| 69 | if "%GSDLLANG%" == "en" echo session. You will therefore need to rerun setup.bat if you want
|
---|
| 70 | if "%GSDLLANG%" == "en" echo to run Greenstone programs from a different MS-DOS session.
|
---|
[17909] | 71 | if "%GSDLLANG%" == "en" echo.
|
---|
[3041] | 72 |
|
---|
[17909] | 73 | if "%GSDLLANG%" == "es" echo.
|
---|
[7020] | 74 | if "%GSDLLANG%" == "es" echo Su ambiente ha sido configurado para correr los programas Greenstone.
|
---|
| 75 | if "%GSDLLANG%" == "es" echo Recuerde que estos ajustes £nicamente tendr n efecto dentro de esta sesi¢n
|
---|
| 76 | if "%GSDLLANG%" == "es" echo MS-DOS. Por lo tanto deber ejecutar nuevamente setup.bat si desea
|
---|
| 77 | if "%GSDLLANG%" == "es" echo correr los programas de Greenstone desde una sesi¢n MS-DOS diferente.
|
---|
[17909] | 78 | if "%GSDLLANG%" == "es" echo.
|
---|
[6765] | 79 |
|
---|
[17909] | 80 | if "%GSDLLANG%" == "fr" echo.
|
---|
[7020] | 81 | if "%GSDLLANG%" == "fr" echo Votre environnement a t configure avec succs pour excuter Greenstone
|
---|
| 82 | if "%GSDLLANG%" == "fr" echo Notez que ces paramtrages n'auront d'effet que dans cette session MS-DOS.
|
---|
| 83 | if "%GSDLLANG%" == "fr" echo Vous devrez par consquent rexcuter setup.bat si vous voulez faire
|
---|
| 84 | if "%GSDLLANG%" == "fr" echo lancer des programmes Greenstone dans une autre session MS-DOS.
|
---|
[17909] | 85 | if "%GSDLLANG%" == "fr" echo.
|
---|
[6764] | 86 |
|
---|
[17909] | 87 | if "%GSDLLANG%" == "ru" echo.
|
---|
[7020] | 88 | if "%GSDLLANG%" == "ru" echo è¥ ®ªà㊥š¥ ¡ë«® ãá¯¥è® áâ஥®, ç⮡ë ãáâ ®¢šâì Greenstone ¡à âšâ¥
|
---|
| 89 | if "%GSDLLANG%" == "ru" echo ¢š¬ š¥, çâ® íâš § ç¥šï ¡ã€ãâ ⮫쪮 š¬¥âì íä䥪⠢ ¯à¥€¥« å í⮣® MS DOS
|
---|
| 90 | if "%GSDLLANG%" == "ru" echo á¥áášï. ë ¡ã€¥â¥ ¯®í⮬㠀®«Šë ¯®¢â®à® ã¯à ¢«ïâì setup.bat, ¥á«š ë å®âšâ¥
|
---|
| 91 | if "%GSDLLANG%" == "ru" echo ã¯à ¢«ïâì ¯à®£à ¬¬ ¬š ¥«ñëå š§¢¥àŠ¥ëå ¯®à®€ ®â à §«šç®© á¥áášš MS DOS.
|
---|
[17909] | 92 | if "%GSDLLANG%" == "ru" echo.
|
---|
[6766] | 93 |
|
---|
[3041] | 94 | :End
|
---|
[14843] | 95 |
|
---|
| 96 | :: test writability of GSDLHOME
|
---|
| 97 | @call "%GSDLHOME%\bin\script\checkwritability.bat"
|
---|
[17948] | 98 | popd |
---|