-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chm のビルド前に chm ファイルを削除する #774
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,34 +8,34 @@ set HHP_MACRO=help\macro\macro.HHP | |
set HHP_PLUGIN=help\plugin\plugin.hhp | ||
set HHP_SAKURA=help\sakura\sakura.hhp | ||
|
||
@rem hhc.exe returns 1 on success, and returns 0 on failure | ||
"%CMD_HHC%" %HHP_MACRO% | ||
if not errorlevel 1 ( | ||
echo error %HHP_MACRO% errorlevel %errorlevel% | ||
"%CMD_HHC%" %HHP_MACRO% | ||
) | ||
if not errorlevel 1 ( | ||
echo error %HHP_MACRO% errorlevel %errorlevel% | ||
exit /b 1 | ||
) | ||
set CHM_MACRO=help\macro\macro.chm | ||
set CHM_PLUGIN=help\plugin\plugin.chm | ||
set CHM_SAKURA=help\sakura\sakura.chm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. コメント) パスは空白を含まない・・・ |
||
|
||
"%CMD_HHC%" %HHP_PLUGIN% | ||
if not errorlevel 1 ( | ||
echo error %HHP_PLUGIN% errorlevel %errorlevel% | ||
"%CMD_HHC%" %HHP_PLUGIN% | ||
) | ||
if not errorlevel 1 ( | ||
echo error %HHP_PLUGIN% errorlevel %errorlevel% | ||
exit /b 1 | ||
) | ||
call :BuildChm %HHP_MACRO% %CHM_MACRO% || (echo error && exit /b 1) | ||
call :BuildChm %HHP_PLUGIN% %CHM_PLUGIN% || (echo error && exit /b 1) | ||
call :BuildChm %HHP_SAKURA% %CHM_SAKURA% || (echo error && exit /b 1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. コメント) 構造は |
||
exit /b 0 | ||
|
||
"%CMD_HHC%" %HHP_SAKURA% | ||
@rem ------------------------------------------------------------------------------ | ||
@rem BuildChm | ||
@rem ------------------------------------------------------------------------------ | ||
:BuildChm | ||
set PROJECT_HHP=%1 | ||
set PROJECT_CHM=%2 | ||
|
||
if exist "%PROJECT_CHM%" del /F "%PROJECT_CHM%" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. コメント) 削除が成功したとき(通常は削除が行われない)に「1個のファイルを削除しました(英語」が出ますね。ファイル名が出ないので、ハマるときはこういうのでもハマりそう。問題ないと思いますが。 |
||
|
||
@rem hhc.exe returns 1 on success, and returns 0 on failure | ||
"%CMD_HHC%" %PROJECT_HHP% | ||
if not errorlevel 1 ( | ||
echo error %HHP_SAKURA% errorlevel %errorlevel% | ||
"%CMD_HHC%" %HHP_SAKURA% | ||
echo error %PROJECT_HHP% errorlevel %errorlevel% | ||
|
||
del /F "%PROJECT_CHM%" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. コメント) ファイル削除後のエラーチェックはしないんですね 😄 |
||
"%CMD_HHC%" %PROJECT_HHP% | ||
) | ||
if not errorlevel 1 ( | ||
echo error %HHP_SAKURA% errorlevel %errorlevel% | ||
echo retry error %PROJECT_HHP% errorlevel %errorlevel% | ||
exit /b 1 | ||
) | ||
exit /b 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメント) パスは空白を含まない・・・