]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/bin/CreateMdkPkg.bat
70de527e2958a71b92fe3f6783a1f67efb76a0ea
[mirror_edk2.git] / Tools / bin / CreateMdkPkg.bat
1 @REM
2 @REM Copyright (c) 2006, Intel Corporation
3 @REM All rights reserved. This program and the accompanying materials
4 @REM are licensed and made available under the terms and conditions of the BSD License
5 @REM which accompanies this distribution. The full text of the license may be found at
6 @REM http://opensource.org/licenses/bsd-license.php
7 @REM
8 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10 @REM
11
12 REM @echo off
13
14 :check_java
15 if "%JAVA_HOME%"=="" goto no_jdk
16 :check_wks
17 if "%WORKSPACE%"=="" goto no_wks
18
19 set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant
20 set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%
21
22 call "ant" -f %WORKSPACE%\Tools\Source\CreateMdkPkg\build.xml
23
24 echo DONE
25
26 goto end
27
28 :no_jdk
29 echo.
30 echo !!! Please set JAVA_HOME !!!
31 echo.
32 goto check_wks
33
34 :no_wks
35 echo.
36 echo !!! Please set WORKSPACE !!!
37 echo.
38 goto end
39
40 :end
41 @echo on
42