root/gs2-extensions/open-office/trunk/setup.bat @ 22238

Revision 22238, 1.1 KB (checked in by davidb, 10 years ago)

Whitespace tidyup

  • Property svn:executable set to *
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%
17set PATH=%GEXTOPENOFFICE%\bin\script;%PATH%
18set GS_CP_SET=yes
19goto Success
20
21:Win95
22if "%1" == "SetEnv" goto Win95Env
23REM We'll invoke a second copy of the command processor to make
24REM sure there's enough environment space
25COMMAND /E:2048 /K %0 SetEnv
26goto End
27
28:Win95Env
29set GEXTOPENOFFICE=%CD%
30set PATH="%GEXTOPENOFFICE%\bin\script";"%PATH%"
31set GS_CP_SET=yes
32goto Success
33
34:Success
35
36if "x%GSDLEXTS%" == "x" (
37  set GSDLEXTS=open-office
38) else (
39  set GSDLEXTS=%GSDLEXTS%:open-office
40)
41
42echo +Your environment is now setup for %extdesc%
43
44:End
45
46popd
Note: See TracBrowser for help on using the browser.