root/gs3-extensions/mars-src/trunk/setup.bat @ 34339

Revision 34339, 1.5 KB (checked in by davidb, 7 weeks ago)

Some initial files to compile up essentia, used in the Mars extension to Greenstone

  • Property svn:executable set to *
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5echo Windows MARS EXT SETUP is *UNTESTED*
6echo Windows MARS EXT SETUP is *UNTESTED*
7echo Windows MARS EXT SETUP is *UNTESTED*
8echo Windows MARS EXT SETUP is *UNTESTED*
9
10set extdesc=the Music Affect Recommender System (MARS) Extension
11
12if "%OS%" == "Windows_NT" goto WinNT
13if "%OS%" == "" goto Win95
14if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
15if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
16if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
17if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ 〠« áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
18goto End
19
20:WinNT
21set GEXT_MARS=%CD%
22set GEXT_MARS_INSTALLED=%GEXT_MARS%\windows
23
24set PATH=%GEXT_MARS_INSTALLED%\bin;%GEXT_MARS%\bin\script;%PATH%
25
26set GS_CP_SET=yes
27goto Success
28
29:Win95
30if "%1" == "SetEnv" goto Win95Env
31REM We'll invoke a second copy of the command processor to make
32REM sure there's enough environment space
33COMMAND /E:2048 /K %0 SetEnv
34goto End
35
36:Win95Env
37set GEXT_MARS=%CD%
38set PATH=%GEXT_MARS_INSTALLED%\bin;%GEXT_MARS%\bin\script;%PATH%
39set GS_CP_SET=yes
40goto Success
41
42:Success
43
44set fulldir=%~dp0
45
46:: strip off everything up to (and including) ext dir
47set extdir=%fulldir:*ext\=%
48
49:: remove trailing slash
50set extdir=%extdir:\=%
51
52if "x%GSDLEXTS%" == "x" (
53  set GSDLEXTS=%extdir%
54) else (
55  set GSDLEXTS=%GSDLEXTS%:%extdir%
56)
57
58echo +Your environment is now setup for %extdesc%
59
60:End
61
62popd
Note: See TracBrowser for help on using the browser.