Last change
on this file since 22541 was 22243, checked in by davidb, 14 years ago |
Unix files to compile and install jAudio. Initial cut at Windows .bat equivalent
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | @echo off
|
---|
2 |
|
---|
3 | pushd "%CD%"
|
---|
4 | CD /D "%~dp0"
|
---|
5 |
|
---|
6 | call cascade-make/lib/cascade-lib.bat
|
---|
7 |
|
---|
8 | :: Guaranteed that GSDLOS has now been set
|
---|
9 |
|
---|
10 |
|
---|
11 | :: Make sure can find javac
|
---|
12 |
|
---|
13 | :: Remove any quotes from around JAVA_HOME
|
---|
14 | if defined JAVA_HOME set JAVA_HOME=%JAVA_HOME:"=%
|
---|
15 |
|
---|
16 |
|
---|
17 | if "%JAVA_HOME%" == "" (
|
---|
18 | echo Testing for Java compiler ...
|
---|
19 |
|
---|
20 | javac -version 2>nul
|
---|
21 | if ERRORLEVEL 1 (
|
---|
22 | echo ... failed to find 'javac'
|
---|
23 | cmd /c exit -4
|
---|
24 | goto:EOF
|
---|
25 | ) else (
|
---|
26 | echo ... found it
|
---|
27 | )
|
---|
28 | ) else (
|
---|
29 |
|
---|
30 | :: Good chance it's in the path already => don't want to see any output
|
---|
31 | javac -version 2>nul
|
---|
32 | if ERRORLEVEL 1 (
|
---|
33 | echo Setting path to include "%JAVA_HOME%\bin"
|
---|
34 | set "PATH=%JAVA_HOME%\bin;%PATH%"
|
---|
35 | )
|
---|
36 | )
|
---|
37 |
|
---|
38 |
|
---|
39 | for /D %%d IN ("%GSDLOS%" "lib\java") do (
|
---|
40 | if not exist "%GEXT_MUSICIR_INSTALLED%\%%d" (
|
---|
41 | echo Creating %GEXT_MUSICIR_INSTALLED%\%%d
|
---|
42 | mkdir "%GEXT_MUSICIR_INSTALLED%\%%d"
|
---|
43 | )
|
---|
44 | )
|
---|
45 |
|
---|
46 | set dirlist=build-srcpack
|
---|
47 |
|
---|
48 | for /D %%d IN (%dirlist%) do (
|
---|
49 | echo Running %%d\CASCADE-MAKE.bat %*
|
---|
50 |
|
---|
51 | (cd %%d && call CASCADE-MAKE.bat %* && cd ..)
|
---|
52 |
|
---|
53 | if ERRORLEVEL 1 (
|
---|
54 | echo Error encountered running %%d\CASCADE-MAKE.bat
|
---|
55 | cmd /c exit 1
|
---|
56 | goto:EOF
|
---|
57 | )
|
---|
58 | )
|
---|
59 |
|
---|
60 |
|
---|
61 | if %install% == 1 (
|
---|
62 | type README.txt
|
---|
63 | )
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.