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