source: gs2-extensions/open-office/trunk/setup.bat@ 22228

Last change on this file since 22228 was 22228, checked in by davidb, 14 years ago

Initial cut at setup file for Windows

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4set GSDLLANG=en
5set extdesc=the OpenOffice Extension
6
7if "%OS%" == "Windows_NT" goto WinNT
8if "%OS%" == "" goto Win95
9if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
10if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
11if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
12if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ ã€ « áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
13goto End
14
15:WinNT
16set GEXTOPENOFFICE=%CD%
17
18set PATH=%GEXTOPENOFFICE%\bin\script;%PATH%
19set GS_CP_SET=yes
20goto Success
21
22:Win95
23if "%1" == "SetEnv" goto Win95Env
24REM We'll invoke a second copy of the command processor to make
25REM sure there's enough environment space
26COMMAND /E:2048 /K %0 SetEnv
27goto End
28
29:Win95Env
30set GEXTOPENOFFICE=%CD%
31set PATH="%GEXTOPENOFFICE%\bin\script";"%PATH%"
32set GS_CP_SET=yes
33goto Success
34
35:Success
36
37if "x%GSDLEXTS%" == "x" (
38 set GSDLEXTS=open-office
39) else (
40 set GSDLEXTS=%GSDLEXTS%:open-office
41)
42
43echo +Your environment is now setup for %extdesc%
44
45:End
46
47popd
Note: See TracBrowser for help on using the repository browser.