Changeset 22318
- Timestamp:
- 2010-06-28T15:30:56+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/setup.bat
r18968 r22318 1 1 @echo off 2 3 setlocal enabledelayedexpansion 4 2 5 pushd "%CD%" 3 6 CD /D "%~dp0" … … 17 20 echo. 18 21 19 if " %OS%" == "Windows_NT" goto WinNT20 if " %OS%" == "" goto Win9521 if " %GSDLLANG%" == "en" echo Setup failed - your PATH has not been set22 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 ajuste24 if " %GSDLLANG%" == "ru" echo áâ ®¢ª ¥ 〠« áì - ¥ ¡ë« ãáâ ®¢«¥22 if "!OS!" == "Windows_NT" goto WinNT 23 if "!OS!" == "" goto Win95 24 if "!GSDLLANG!" == "en" echo Setup failed - your PATH has not been set 25 if "!GSDLLANG!" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA. 26 if "!GSDLLANG!" == "fr" echo Echc de l'installation - votre variable PATH n'a pas t ajuste 27 if "!GSDLLANG!" == "ru" echo áâ ®¢ª ¥ 〠« áì - ¥ ¡ë« ãáâ ®¢«¥ 25 28 goto End 26 29 … … 30 33 31 34 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.dll33 if exist " %GSDLHOME%\bin\windows\ghostscript\lib\*.*" set GS_LIB=%GSDLHOME%\bin\windows\ghostscript\lib34 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%35 if exist "!GSDLHOME!\bin\windows\ghostscript\bin\gsdll32.dll" set GS_DLL=!GSDLHOME!\bin\windows\ghostscript\bin\gsdll32.dll 36 if exist "!GSDLHOME!\bin\windows\ghostscript\lib\*.*" set GS_LIB=!GSDLHOME!\bin\windows\ghostscript\lib 37 if exist "!GSDLHOME!\bin\windows\ghostscript\bin\*.*" set PATH=!GSDLHOME!\bin\windows\ghostscript\bin;!PATH! 38 if exist "!GSDLHOME!\bin\windows\imagemagick\*.*" set PATH=!GSDLHOME!\bin\windows\imagemagick;!PATH! 36 39 37 if " %GS_CP_SET%" == "yes" goto Success38 set PATH= %GSDLHOME%\bin\windows\perl\bin;%GSDLHOME%\bin\windows;%GSDLHOME%\bin\script;%PATH%40 if "!GS_CP_SET!" == "yes" goto Success 41 set PATH=!GSDLHOME!\bin\windows\perl\bin;!GSDLHOME!\bin\windows;!GSDLHOME!\bin\script;!PATH! 39 42 set GS_CP_SET=yes 40 43 goto Success … … 52 55 53 56 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%"57 if exist "!GSDLHOME!\bin\windows\ghostscript\bin\gsdll32.dll" set GS_DLL="!GSDLHOME!\bin\windows\ghostscript\bin\gsdll32.dll" 58 if exist "!GSDLHOME!\bin\windows\ghostscript\lib\*.*" set GS_LIB="!GSDLHOME!\bin\windows\ghostscript\lib" 59 if exist "!GSDLHOME!\bin\windows\ghostscript\bin\*.*" set PATH="!GSDLHOME!\bin\windows\ghostscript\bin";"!PATH!" 60 if exist "!GSDLHOME!\bin\windows\imagemagick\*.*" set PATH="!GSDLHOME!\bin\windows\imagemagick";"!PATH!" 58 61 59 if " %GS_CP_SET%" == "yes" goto Success60 set PATH=" %GSDLHOME%\bin\windows\perl\bin";"%GSDLHOME%\bin\windows";"%GSDLHOME%\bin\script";"%PATH%"62 if "!GS_CP_SET!" == "yes" goto Success 63 set PATH="!GSDLHOME!\bin\windows\perl\bin";"!GSDLHOME!\bin\windows";"!GSDLHOME!\bin\script";"!PATH!" 61 64 set GS_CP_SET=yes 62 65 goto Success … … 64 67 65 68 :Success 66 if " %GSDLLANG%" == "en" echo.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-DOS69 if " %GSDLLANG%" == "en" echo session. You will therefore need to rerun setup.bat if you want70 if " %GSDLLANG%" == "en" echo to run Greenstone programs from a different MS-DOS session.71 if " %GSDLLANG%" == "en" echo.69 if "!GSDLLANG!" == "en" echo. 70 if "!GSDLLANG!" == "en" echo Your environment has successfully been set up to run Greenstone. 71 if "!GSDLLANG!" == "en" echo Note that these settings will only have effect within this MS-DOS 72 if "!GSDLLANG!" == "en" echo session. You will therefore need to rerun setup.bat if you want 73 if "!GSDLLANG!" == "en" echo to run Greenstone programs from a different MS-DOS session. 74 if "!GSDLLANG!" == "en" echo. 72 75 73 if " %GSDLLANG%" == "es" echo.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¢n76 if " %GSDLLANG%" == "es" echo MS-DOS. Por lo tanto deber ejecutar nuevamente setup.bat si desea77 if " %GSDLLANG%" == "es" echo correr los programas de Greenstone desde una sesi¢n MS-DOS diferente.78 if " %GSDLLANG%" == "es" echo.76 if "!GSDLLANG!" == "es" echo. 77 if "!GSDLLANG!" == "es" echo Su ambiente ha sido configurado para correr los programas Greenstone. 78 if "!GSDLLANG!" == "es" echo Recuerde que estos ajustes £nicamente tendr n efecto dentro de esta sesi¢n 79 if "!GSDLLANG!" == "es" echo MS-DOS. Por lo tanto deber ejecutar nuevamente setup.bat si desea 80 if "!GSDLLANG!" == "es" echo correr los programas de Greenstone desde una sesi¢n MS-DOS diferente. 81 if "!GSDLLANG!" == "es" echo. 79 82 80 if " %GSDLLANG%" == "fr" echo.81 if " %GSDLLANG%" == "fr" echo Votre environnement a t configure avec succs pour excuter Greenstone82 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 faire84 if " %GSDLLANG%" == "fr" echo lancer des programmes Greenstone dans une autre session MS-DOS.85 if " %GSDLLANG%" == "fr" echo.83 if "!GSDLLANG!" == "fr" echo. 84 if "!GSDLLANG!" == "fr" echo Votre environnement a t configure avec succs pour excuter Greenstone 85 if "!GSDLLANG!" == "fr" echo Notez que ces paramtrages n'auront d'effet que dans cette session MS-DOS. 86 if "!GSDLLANG!" == "fr" echo Vous devrez par consquent rexcuter setup.bat si vous voulez faire 87 if "!GSDLLANG!" == "fr" echo lancer des programmes Greenstone dans une autre session MS-DOS. 88 if "!GSDLLANG!" == "fr" echo. 86 89 87 if " %GSDLLANG%" == "ru" echo.88 if " %GSDLLANG%" == "ru" echo è¥ ®ªà㊥š¥ ¡ë«® ãá¯¥è® áâ஥®, ç⮡ë ãáâ ®¢šâì Greenstone ¡à âšâ¥89 if " %GSDLLANG%" == "ru" echo ¢š¬ š¥, çâ® íâš § ç¥šï ¡ã€ãâ ⮫쪮 š¬¥âì íä䥪⠢ ¯à¥€¥« å í⮣® MS DOS90 if " %GSDLLANG%" == "ru" echo á¥áášï. ë ¡ã€¥â¥ ¯®í⮬㠀®«Šë ¯®¢â®à® ã¯à ¢«ïâì setup.bat, ¥á«š ë å®âšâ¥91 if " %GSDLLANG%" == "ru" echo ã¯à ¢«ïâì ¯à®£à ¬¬ ¬š ¥«ñëå š§¢¥àŠ¥ëå ¯®à®€ ®â à §«šç®© á¥áášš MS DOS.92 if " %GSDLLANG%" == "ru" echo.90 if "!GSDLLANG!" == "ru" echo. 91 if "!GSDLLANG!" == "ru" echo è¥ ®ªà㊥š¥ ¡ë«® ãá¯¥è® áâ஥®, ç⮡ë ãáâ ®¢šâì Greenstone ¡à âšâ¥ 92 if "!GSDLLANG!" == "ru" echo ¢š¬ š¥, çâ® íâš § ç¥šï ¡ã€ãâ ⮫쪮 š¬¥âì íä䥪⠢ ¯à¥€¥« å í⮣® MS DOS 93 if "!GSDLLANG!" == "ru" echo á¥áášï. ë ¡ã€¥â¥ ¯®í⮬㠀®«Šë ¯®¢â®à® ã¯à ¢«ïâì setup.bat, ¥á«š ë å®âšâ¥ 94 if "!GSDLLANG!" == "ru" echo ã¯à ¢«ïâì ¯à®£à ¬¬ ¬š ¥«ñëå š§¢¥àŠ¥ëå ¯®à®€ ®â à §«šç®© á¥áášš MS DOS. 95 if "!GSDLLANG!" == "ru" echo. 93 96 94 97 :End … … 104 107 if exist apache-httpd ( 105 108 echo Adding in executable path for apache-httpd 106 set PATH= %GSDLHOME%\apache-httpd\%GSDLOS%\bin;%PATH%109 set PATH=!GSDLHOME!\apache-httpd\!GSDLOS!\bin;!PATH! 107 110 ) 108 111 … … 115 118 cd .. 116 119 ) 117 set PATH= %GSDLHOME%\local\bin;%PATH%120 set PATH=!GSDLHOME!\local\bin;!PATH! 118 121 ) 119 122 120 123 :: test writability of GSDLHOME 121 @call " %GSDLHOME%\bin\script\checkwritability.bat"124 @call "!GSDLHOME!\bin\script\checkwritability.bat" 122 125 popd 126 127 endlocal & set PATH=%PATH%& set GSDLHOME=%GSDLHOME%
Note:
See TracChangeset
for help on using the changeset viewer.