Last change
on this file since 22496 was 22496, checked in by davidb, 14 years ago |
Work out name of extension rather than use hard-wired name
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Rev | Line | |
---|
[22228] | 1 | @echo off
|
---|
| 2 | pushd "%CD%"
|
---|
| 3 | CD /D "%~dp0"
|
---|
[22496] | 4 |
|
---|
[22228] | 5 | set extdesc=the OpenOffice Extension
|
---|
| 6 |
|
---|
| 7 | if "%OS%" == "Windows_NT" goto WinNT
|
---|
| 8 | if "%OS%" == "" goto Win95
|
---|
| 9 | if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
|
---|
| 10 | if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
|
---|
| 11 | if "%GSDLLANG%" == "fr" echo Echc de l'installation - votre variable PATH n'a pas t ajuste
|
---|
| 12 | if "%GSDLLANG%" == "ru" echo áâ ®¢ª ¥ 〠« áì - ¥ ¡ë« ãáâ ®¢«¥
|
---|
| 13 | goto End
|
---|
| 14 |
|
---|
| 15 | :WinNT
|
---|
[22250] | 16 | set GEXT_OPENOFFICE=%CD%
|
---|
| 17 | set PATH=%GEXT_OPENOFFICE%\bin\script;%PATH%
|
---|
[22228] | 18 | set GS_CP_SET=yes
|
---|
| 19 | goto Success
|
---|
| 20 |
|
---|
| 21 | :Win95
|
---|
| 22 | if "%1" == "SetEnv" goto Win95Env
|
---|
| 23 | REM We'll invoke a second copy of the command processor to make
|
---|
| 24 | REM sure there's enough environment space
|
---|
| 25 | COMMAND /E:2048 /K %0 SetEnv
|
---|
| 26 | goto End
|
---|
| 27 |
|
---|
| 28 | :Win95Env
|
---|
[22250] | 29 | set GEXT_OPENOFFICE=%CD%
|
---|
| 30 | set PATH="%GEXT_OPENOFFICE%\bin\script";"%PATH%"
|
---|
[22228] | 31 | set GS_CP_SET=yes
|
---|
| 32 | goto Success
|
---|
| 33 |
|
---|
| 34 | :Success
|
---|
| 35 |
|
---|
[22496] | 36 | set fulldir=%~dp0
|
---|
| 37 |
|
---|
| 38 | :: strip off everything up to (and including) ext dir
|
---|
| 39 | set extdir=%fulldir:*ext\=%
|
---|
| 40 |
|
---|
| 41 | :: remove trailing slash
|
---|
| 42 | set extdir=%extdir:\=%
|
---|
| 43 |
|
---|
[22228] | 44 | if "x%GSDLEXTS%" == "x" (
|
---|
[22496] | 45 | set GSDLEXTS=%extdir%
|
---|
[22228] | 46 | ) else (
|
---|
[22496] | 47 | set GSDLEXTS=%GSDLEXTS%:%extdir%
|
---|
[22228] | 48 | )
|
---|
| 49 |
|
---|
| 50 | echo +Your environment is now setup for %extdesc%
|
---|
| 51 |
|
---|
[22496] | 52 | :: Back to delayed expansion to avoid problems with environment
|
---|
| 53 | :: variables with brackets in them, such as "Program Files (x86)"
|
---|
| 54 |
|
---|
| 55 |
|
---|
[22228] | 56 | :End
|
---|
| 57 |
|
---|
| 58 | popd |
---|
Note:
See
TracBrowser
for help on using the repository browser.