diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-13 07:51:03 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-13 07:51:03 +0000 |
commit | a7451d112dcda017ffbcf61d60d6951515e974f1 (patch) | |
tree | 1b04d3cffcad0a852ab97e9203eaa758fb1a5cf8 /BaseTools/Bin/Win32 | |
parent | 3c043881a9e3ace8c829ebad318a53a53137c7e2 (diff) | |
download | edk2-platforms-a7451d112dcda017ffbcf61d60d6951515e974f1.tar.xz |
a. Added ImportTool.bat script
b. Added more error check for Trim.exe
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6490 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Bin/Win32')
-rw-r--r-- | BaseTools/Bin/Win32/ImportTool.bat | 53 | ||||
-rwxr-xr-x | BaseTools/Bin/Win32/Trim.exe | bin | 594498 -> 796183 bytes |
2 files changed, 53 insertions, 0 deletions
diff --git a/BaseTools/Bin/Win32/ImportTool.bat b/BaseTools/Bin/Win32/ImportTool.bat new file mode 100644 index 0000000000..e0b9d1b54e --- /dev/null +++ b/BaseTools/Bin/Win32/ImportTool.bat @@ -0,0 +1,53 @@ +@REM +@REM Copyright (c) 2008, Intel Corporation +@REM All rights reserved. This program and the accompanying materials +@REM are licensed and made available under the terms and conditions of the BSD License +@REM which accompanies this distribution. The full text of the license may be found at +@REM http://opensource.org/licenses/bsd-license.php +@REM +@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +@REM + +@echo off +@if /I "%1"=="-h" goto Usage +@if /I "%1"=="-help" goto Usage +@if /I "%1"=="--help" goto Usage +@if /I "%1"=="/h" goto Usage +@if /I "%1"=="/help" goto Usage +@if /I "%1"=="/?" goto Usage + +set IMPORT_TOOL=%~dp0Trim.exe +if NOT exist %IMPORT_TOOL% ( + echo. + echo !!! Trim.exe was not found. Please make sure that it is in the same directory as this script! + echo. + goto End +) + +if '%*'=='' ( + set FILE_LIST=*.c +) else ( + set FILE_LIST=%* +) + +for /r %%i in (%FILE_LIST%) do ( + echo Converting ... %%i + %IMPORT_TOOL% -8 -o %%i %%i +) +goto End + +:Usage + echo. + echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [files]" + echo. + echo files File list or file pattern with wildcard, like "*.c *.h", + echo seperated by space. If not specified, defaul to *.c. +echo. + +:End +set FILE_LIST= +set IMPORT_TOOL= + +@echo on + diff --git a/BaseTools/Bin/Win32/Trim.exe b/BaseTools/Bin/Win32/Trim.exe Binary files differindex cd8281fd20..f9a5cf2f14 100755 --- a/BaseTools/Bin/Win32/Trim.exe +++ b/BaseTools/Bin/Win32/Trim.exe |