-@REM\r
-@REM Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
-@REM This program and the accompanying materials\r
-@REM are licensed and made available under the terms and conditions of the BSD License\r
-@REM which accompanies this distribution. The full text of the license may be found at\r
-@REM http://opensource.org/licenses/bsd-license.php\r
-@REM\r
-@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-@REM\r
-\r
-@echo off\r
-@if /I "%1"=="-h" goto Usage\r
-@if /I "%1"=="-help" goto Usage\r
-@if /I "%1"=="--help" goto Usage\r
-@if /I "%1"=="/h" goto Usage\r
-@if /I "%1"=="/help" goto Usage\r
-@if /I "%1"=="/?" goto Usage\r
-\r
-set IMPORT_TOOL=%~dp0Trim.exe\r
-if NOT exist %IMPORT_TOOL% (\r
- echo.\r
- echo !!! Trim.exe was not found. Please make sure that it is in the same directory as this script!\r
- echo.\r
- goto End\r
-)\r
-\r
-if '%*'=='' (\r
- set FILE_LIST=*.c\r
-) else (\r
- set FILE_LIST=%*\r
-)\r
-\r
-for /r %%i in (%FILE_LIST%) do (\r
- echo Converting ... %%i\r
- %IMPORT_TOOL% -8 -o %%i %%i\r
-)\r
-goto End\r
-\r
-:Usage\r
- echo.\r
- echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [files]"\r
- echo.\r
- echo files File list or file pattern with wildcard, like "*.c *.h",\r
- echo seperated by space. If not specified, defaul to *.c.\r
-echo.\r
-\r
-:End\r
-set FILE_LIST=\r
-set IMPORT_TOOL=\r
-\r
-@echo on\r
-\r