]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/bin/SAPretty.bat
Adjust MonoStatusCode module in EdkNt32Pkg to avoid ".." used in Msa file.
[mirror_edk2.git] / Tools / bin / SAPretty.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 @if "%JAVA_HOME%"=="" goto no_jdk
13 @if "%WORKSPACE%"=="" goto no_wks
14
15 @if "%1"=="" goto usage
16 @if "%1"=="-H" (goto usage)
17 @if "%1"=="-h" (goto usage) else (goto all)
18
19 :usage
20 @echo off
21 @echo.
22 @echo Beautify XML file format
23 @echo.
24 @echo Usage: SAPretty.bat "XML_FILE"
25 @echo.
26 goto end
27
28 :all
29 @ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml pretty -DSURFACE_AREA_FILE=%~f1
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