source: other-projects/trunk/realistic-books/setup.bat@ 19633

Last change on this file since 19633 was 19630, checked in by davidb, 15 years ago

Comparable windows setup file

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