root/gs2-extensions/gnome-lib/trunk/setup.bat @ 22805

Revision 22805, 1.3 KB (checked in by ak19, 9 years ago)

Add the contents of the gnome-lib extension

  • Property svn:executable set to *
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4set GSDLLANG=en
5set extdesc="the GNOME support library"
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 GEXTGNOME=%CD%
17set GEXTGNOME_INSTALLED=%GEXTGNOME%\windows
18
19set PATH=%GEXTGNOME_INSTALLED%\bin;%PATH%
20set GS_CP_SET=yes
21goto Success
22
23:Win95
24if "%1" == "SetEnv" goto Win95Env
25REM We'll invoke a second copy of the command processor to make
26REM sure there's enough environment space
27COMMAND /E:2048 /K %0 SetEnv
28goto End
29
30:Win95Env
31set GEXTGNOME=%CD%
32set PATH="%GEXTGNOME_INSTALLED%\bin";"%PATH%"
33set GS_CP_SET=yes
34goto Success
35
36:Success
37
38set fulldir=%~dp0
39
40:: strip off everything up to (and including) ext dir
41set extdir=%fulldir:*ext\=%
42
43:: remove trailing slash
44set extdir=%extdir:\=%
45
46
47if "x%GSDLEXTS%" == "x" (
48  set GSDLEXTS=%extdir%
49) else (
50  set GSDLEXTS=%GSDLEXTS%:%extdir%
51)
52
53echo +Your environment is now setup for %extdesc%
54
55:End
56
57popd
Note: See TracBrowser for help on using the browser.