-
Notifications
You must be signed in to change notification settings - Fork 4
/
stanse.cmd
76 lines (50 loc) · 1.88 KB
/
stanse.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@echo off
rem ===========================================================================
rem Modify following variables to point to the correct directories
rem ===========================================================================
rem Apache ANT directory
set ANT_HOME=D:\Diplomka\Apache-ant-1.7.1
rem Java JDK directory
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_16
rem MingW directory
set MINGW_HOME=C:\MingW
rem Perl directory
set PERL_HOME=D:\StanseBuild
rem Uncomment this if you are using the stripped-down Perl from our website
set PERL5LIB=%PERL_HOME%\usr\lib\perl5
rem ===========================================================================
rem No modifications needed past this line
rem ===========================================================================
set PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%MINGW_HOME%\bin;%PERL_HOME%\bin
rem Add stcc & stpreproc & stparser-c to PATH
set PREPROC_HOME=%CD%\dist\bin
set PATH=%PATH%;%PREPROC_HOME%
rem ===========================================================================
rem Check to see if paths have been set up correctly
rem ===========================================================================
if not exist "%PREPROC_HOME%\stpreproc" (
color C
echo ERROR: stpreproc not found in %PREPROC_HOME%
)
javac -version >nul 2>nul
if "%ERRORLEVEL%" NEQ "0" (
color C
echo ERROR: There is something wrong with javac. Is JAVA_HOME okay?
)
call ant -version >nul 2>nul
if "%ERRORLEVEL%" NEQ "0" (
color C
echo ERROR: There is something wrong with ant. Is ANT_HOME okay?
)
gcc --version >nul 2>nul
if "%ERRORLEVEL%" NEQ "0" (
color C
echo ERROR: There is something wrong with gcc. Is MINGW_HOME okay?
)
perl --version >nul 2>nul
if "%ERRORLEVEL%" NEQ "0" (
color C
echo ERROR: There is something wrong with Perl. Is PERL_HOME okay?
)
title Stanse Build Window
cmd /K