Skip to content
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 のビルドでリトライを実装 #622

Merged
merged 3 commits into from
Nov 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions build-chm.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,38 @@ if "%CMD_HHC%" == "" (
exit /b 1
)

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%" help\macro\macro.HHP
"%CMD_HHC%" %HHP_MACRO%
if not errorlevel 1 (
echo error %HHP_MACRO% errorlevel %errorlevel%
"%CMD_HHC%" %HHP_MACRO%
)
if not errorlevel 1 (
echo error macro.HHP errorlevel %errorlevel%
echo error %HHP_MACRO% errorlevel %errorlevel%
exit /b 1
)

"%CMD_HHC%" help\plugin\plugin.hhp
"%CMD_HHC%" %HHP_PLUGIN%
if not errorlevel 1 (
echo error %HHP_PLUGIN% errorlevel %errorlevel%
"%CMD_HHC%" %HHP_PLUGIN%
)
if not errorlevel 1 (
echo error plugin.hhp errorlevel %errorlevel%
echo error %HHP_PLUGIN% errorlevel %errorlevel%
exit /b 1
)
"%CMD_HHC%" help\sakura\sakura.hhp

"%CMD_HHC%" %HHP_SAKURA%
if not errorlevel 1 (
echo error %HHP_SAKURA% errorlevel %errorlevel%
"%CMD_HHC%" %HHP_SAKURA%
)
if not errorlevel 1 (
echo error sakura.hhp errorlevel %errorlevel%
echo error %HHP_SAKURA% errorlevel %errorlevel%
exit /b 1
)
exit /b 0