Skip to content

Commit

Permalink
Merge pull request #622 from m-tmatma/feature/retry-hhc
Browse files Browse the repository at this point in the history
chm のビルドでリトライを実装
  • Loading branch information
m-tmatma authored Nov 18, 2018
2 parents 1d1dcbc + ab96c8e commit ace82c2
Showing 1 changed file with 23 additions and 6 deletions.
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

0 comments on commit ace82c2

Please sign in to comment.