TwlToolsRED/build/tools/MasterEditor/MasterEditorTWLChecker/diff.bat
nishikawa_takeshi e1610f1f67 マスタエディタ出力チェッカ:一部バッチファイルの日本語表示を英語表示に変更。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@374 7061adef-622a-194b-ae81-725974e89856
2009-07-09 08:23:51 +00:00

54 lines
1.0 KiB
Batchfile

@echo off
rem
rem mastering & comparing sample batch file
rem
rem Simple usage: SRLファイルをドラッグすると%output_path%にマスタリング
rem 結果を出力し、正しくできたか検証を行う
rem
rem 要確認変数: mastering_tool, comparing_tool, output_path
rem 補足: %~d0%~p0はバッチファイルのパスです
rem 補足: %~d1%~p1は各入力ファイルのパスです
rem
rem 引数チェック
set usage=USAGE: %~nx0 INPUT_FILE...
if ""%1"" == """" (
echo %usage%
echo Illegal usage.
echo Drag and drop the SRL/XML.
echo.
goto end
)
rem パス設定
set org_file=%~d0%~p0ORG.SRL
rem ループ開始 (%0を使うのはここまで、%1を使うのはここから、%2以降は使わない)
:begin
rem 出力パス設定
set input_file=%~dpnx1
rem 処理本体
echo.
echo check %~nx1
echo.
fc /B "%org_file%" "%input_file%"
if not %ERRORLEVEL% == 0 (
echo *** Different files. ***
) else (
echo No difference.
)
rem 入力ファイルが残っているならbeginに戻る
shift
if ""%1"" neq """" goto begin
rem 終了 (キー入力待ち)
:end
echo.
echo All check end.
pause