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

Last change on this file since 23228 was 23227, checked in by sjm84, 12 years ago

Phase 1 of rearranging the open-office extension

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
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 GEXT_OPENOFFICE=%CD%
17set PATH=%GEXT_OPENOFFICE%\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 GEXT_OPENOFFICE=%CD%
30set PATH="%GEXT_OPENOFFICE%\bin\script";"%PATH%"
31set GS_CP_SET=yes
32goto Success
33
34:Success
35
36set fulldir=%~dp0
37
38:: strip off everything up to (and including) ext dir
39set extdir=%fulldir:*ext\=%
40
41:: remove trailing slash
42set extdir=%extdir:\=%
43
44if "x%GSDLEXTS%" == "x" (
45 set GSDLEXTS=%extdir%
46) else (
47 set GSDLEXTS=%GSDLEXTS%:%extdir%
48)
49
50echo +Your environment is now setup for %extdesc%
51
52:: Back to delayed expansion to avoid problems with environment
53:: variables with brackets in them, such as "Program Files (x86)"
54
55
56:End
57
58popd
Note: See TracBrowser for help on using the repository browser.