[19630] | 1 | @echo off
|
---|
| 2 | pushd "%CD%"
|
---|
| 3 | CD /D "%~dp0"
|
---|
| 4 | set RBLANG=en
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | echo Realistic Books Software
|
---|
| 8 | echo (C) 2008, New Zealand Digital Library Project
|
---|
| 9 | echo.
|
---|
| 10 | echo.
|
---|
| 11 | echo.
|
---|
| 12 |
|
---|
| 13 | if "%OS%" == "Windows_NT" goto WinNT
|
---|
| 14 | if "%OS%" == "" goto Win95
|
---|
| 15 | if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
|
---|
| 16 | if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
|
---|
| 17 | if "%GSDLLANG%" == "fr" echo EchÂc de l'installation - votre variable PATH n'a pas Ât ajustÂe
|
---|
| 18 | if "%GSDLLANG%" == "ru" echo Âáâ Â®¢ª ÂÂ¥ 〠« áì -  ÂÂ¥ ¡ë« ãáâ Â®¢«¥Â
|
---|
| 19 |
|
---|
| 20 | goto End
|
---|
| 21 |
|
---|
| 22 | :WinNT
|
---|
| 23 | set REALISTIC_BOOKS_HOME=%CD%
|
---|
| 24 | set RBOS=windows
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | if "%RB_CP_SET%" == "yes" goto Success
|
---|
| 28 | set PATH=%REALISTIC_BOOKS_HOME%\bin\windows\perl\bin;%REALISTIC_BOOKS_HOME%\bin\windows;%REALISTIC_BOOKS_HOME%\bin\script;%PATH%
|
---|
| 29 | set RB_CP_SET=yes
|
---|
| 30 | goto Success
|
---|
| 31 |
|
---|
| 32 | :Win95
|
---|
| 33 | if "%1" == "SetEnv" goto Win95Env
|
---|
| 34 | REM We'll invoke a second copy of the command processor to make
|
---|
| 35 | REM sure there's enough environment space
|
---|
| 36 | COMMAND /E:2048 /K %0 SetEnv
|
---|
| 37 | goto End
|
---|
| 38 |
|
---|
| 39 | :Win95Env
|
---|
| 40 | set REALISTIC_BOOKS_HOME=%CD%
|
---|
| 41 | set RBOS=windows
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | if "%RB_CP_SET%" == "yes" goto Success
|
---|
| 45 | set PATH="%REALISTIC_BOOKS_HOME%\bin\windows\perl\bin";"%REALISTIC_BOOKS_HOME%\bin\windows";"%REALISTIC_BOOKS_HOME%\bin\script";"%PATH%"
|
---|
| 46 | set RB_CP_SET=yes
|
---|
| 47 | goto Success
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | :Success
|
---|
| 51 | if "%RBLANG%" == "en" echo.
|
---|
| 52 | if "%RBLANG%" == "en" echo Your environment has successfully been set up to run RealisticBooks.
|
---|
| 53 | if "%RBLANG%" == "en" echo Note that these settings will only have effect within this MS-DOS
|
---|
| 54 | if "%RBLANG%" == "en" echo session. You will therefore need to rerun setup.bat if you want
|
---|
| 55 | if "%RBLANG%" == "en" echo to run RealisticBooks programs from a different MS-DOS session.
|
---|
| 56 | if "%RBLANG%" == "en" echo.
|
---|
| 57 |
|
---|
| 58 | if "%RBLANG%" == "es" echo.
|
---|
| 59 | if "%RBLANG%" == "es" echo Su ambiente ha sido configurado para correr los programas RealisticBooks.
|
---|
| 60 | if "%RBLANG%" == "es" echo Recuerde que estos ajustes £nicamente tendr n efecto dentro de esta sesi¢n
|
---|
| 61 | if "%RBLANG%" == "es" echo MS-DOS. Por lo tanto deber ejecutar nuevamente setup.bat si desea
|
---|
| 62 | if "%RBLANG%" == "es" echo correr los programas de RealisticBooks desde una sesi¢n MS-DOS diferente.
|
---|
| 63 | if "%RBLANG%" == "es" echo.
|
---|
| 64 |
|
---|
| 65 | if "%RBLANG%" == "fr" echo.
|
---|
| 66 | if "%RBLANG%" == "fr" echo Votre environnement a Ât configuÂre avec succÂs pour exÂcuter RealisticBooks
|
---|
| 67 | if "%RBLANG%" == "fr" echo Notez que ces paramÂtrages n'auront d'effet que dans cette session MS-DOS.
|
---|
| 68 | if "%RBLANG%" == "fr" echo Vous devrez par consÂquent rÂexÂcuter setup.bat si vous voulez faire
|
---|
| 69 | if "%RBLANG%" == "fr" echo lancer des programmes RealisticBooks dans une autre session MS-DOS.
|
---|
| 70 | if "%RBLANG%" == "fr" echo.
|
---|
| 71 |
|
---|
| 72 | if "%RBLANG%" == "ru" echo.
|
---|
| 73 | if "%RBLANG%" == "ru" echo  ڥ ®ªà ㊥š¥ ¡ë«® ãᯥÚ®  áâà ®¥Â®, ç⮡ë ãáâ Â®¢šâì RealisticBooks Â¡à  âšâ¥
|
---|
| 74 | if "%RBLANG%" == "ru" echo ¢Âš¬ Âš¥, çâ® Ã⚠ §Â ç¥Âšï ¡ã€ãâ ⮫쪮 š¬¥âì ÃÀÀ¥ªâ ¢ ¯à ¥€¥« å Ã⮣® MS DOS
|
---|
| 75 | if "%RBLANG%" == "ru" echo á¥áášï. Âë ¡ã€¥â¥ ¯®Ã⮬ã €®«ŠÂë ¯®¢â®à ® ã¯à  ¢«ïâì setup.bat, ¥á«š Âë å®âšâ¥
|
---|
| 76 | if "%RBLANG%" == "ru" echo ã¯à  ¢«ïâì ¯à ®£à  ¬¬ ¬š Â¥«ñÂëå š§¢¥à Š¥ÂÂëå ¯®à ®€ ®â à  §«šç®© á¥áᚚ MS DOS.
|
---|
| 77 | if "%RBLANG%" == "ru" echo.
|
---|
| 78 |
|
---|
| 79 | :End
|
---|
| 80 |
|
---|
| 81 | :: test writability of REALISTIC_BOOKS_HOME
|
---|
| 82 | @call "%REALISTIC_BOOKS_HOME%\bin\script\checkwritability.bat"
|
---|
| 83 | popd
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 |
|
---|