]>
Commit | Line | Data |
---|---|---|
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 | |
12 | @if "%JAVA_HOME%"=="" goto no_jdk\r | |
13 | @if "%WORKSPACE%"=="" goto no_wks\r | |
14 | \r | |
15 | @if "%1"=="" (goto usage)\r | |
16 | @if "%1"=="-h" (goto usage)\r | |
17 | @if "%1"=="-H" (goto usage)\r | |
18 | @if "%1"=="all" (goto all)\r | |
19 | @if "%1"=="ALL" (goto all) else (goto standalone)\r | |
20 | \r | |
21 | :usage\r | |
22 | @echo off\r | |
23 | @echo.\r | |
24 | @echo Verify SurfaceArea file(s)\r | |
25 | @echo.\r | |
26 | @echo Usage: \r | |
27 | @echo SAVerify.bat "MSA_FILE" - Verify SurfaceArea file named by MSA_FILE\r | |
28 | @echo SAVerify.bat all - Verify all SurfaceArea files under current directory and its sub-directories\r | |
29 | @echo SAVerify.bat -h - Print usage message\r | |
30 | @echo.\r | |
31 | goto end\r | |
32 | \r | |
33 | :all\r | |
34 | @echo off\r | |
f924208b | 35 | @for /R %%a in (*.msa *.fpd *.spd) do @ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml validate -DSURFACE_AREA_FILE=%%a\r |
878ddf1f | 36 | @echo on\r |
37 | @goto end\r | |
38 | \r | |
39 | :standalone\r | |
40 | @ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml validate -DSURFACE_AREA_FILE=%~f1\r | |
41 | @goto end\r | |
42 | \r | |
43 | :no_jdk\r | |
44 | @echo.\r | |
45 | @echo !!! Please set JAVA_HOME !!!\r | |
46 | @echo.\r | |
47 | @goto end\r | |
48 | \r | |
49 | :no_wks\r | |
50 | @echo.\r | |
51 | @echo !!! Please set WORKSPACE !!!\r | |
52 | @echo.\r | |
53 | @goto end\r | |
54 | \r | |
55 | :end\r |