Changed FvBinding to be a list of Keywords (not using list, just specifying the patte...
[mirror_edk2.git] / Tools / bin / GenBuildFile.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 @echo off
13
14 @if "%JAVA_HOME%"=="" goto no_jdk
15 @if "%WORKSPACE%"=="" goto no_wks
16
17 @if "%1"=="-H" (goto usage)
18 @if "%1"=="-h" (goto usage) else (goto all)
19
20 :usage
21 @echo.
22 @echo Generate entrance build.xml for each module under current directory
23 @echo.
24 @echo Usage: GenBuildFile.bat - must be executed in the package level directory
25 @echo.
26 goto end
27
28 :all
29 ant -q -f %WORKSPACE%\Tools\bin\GenBuildFile.xml
30 goto end
31
32 :no_jdk
33 @echo.
34 @echo !!! Please set JAVA_HOME !!!
35 @echo.
36 @goto end
37
38 :no_wks
39 @echo.
40 @echo !!! Please set WORKSPACE !!!
41 @echo.
42 @goto end
43
44 :end
45 @echo on