Initial import.
[mirror_edk2.git] / Start Create Setup Package.bat
1 @REM set following environment in this file or in command shell
2 @REM set JAVA_HOME="C:\Program Files\Java\jdk1.5.0_04"
3 @REM set WORKSPACE=C:\MyWorkspace
4
5
6 @REM ##############################################################
7 @REM # You should not have to modify anything below this line
8 @REM #
9
10 @echo off
11
12 :check_java
13 if "%JAVA_HOME%"=="" goto no_jdk
14 :check_wks
15 if "%WORKSPACE%"=="" goto no_wks
16
17 set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant
18 set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%
19
20 call "ant" -f %WORKSPACE%\Tools\Source\Setup\build.xml
21
22 echo DONE
23
24 goto end
25
26 :no_jdk
27 echo.
28 echo !!! Please set JAVA_HOME !!!
29 echo.
30 goto check_wks
31
32 :no_wks
33 echo.
34 echo !!! Please set WORKSPACE !!!
35 echo.
36 goto end
37
38 :end
39 @echo on
40