Browse Subversion Repository
Contents of /trunk/doc/makechm.bat
Parent Directory
| Revision Log
Revision 10218 -
( show annotations)
( download)
( as text)
Wed Aug 31 14:24:24 2022 UTC
(20 months, 4 weeks ago)
by zmatsuo
File MIME type: application/x-msdos-program
File size: 1243 byte(s)
cygwin 環境などでも makechm.bat が実行できるよう修正
- Windows の find.exe を使用するよう fullpath で実行するようにした
- cygwin等のfind.exeを実行しないようになった
- $PATH に依存しないようになった
- CP 65001(UTF-8)環境でも日本語chmを生成するようにした
| 1 |
|
| 2 |
if exist "%Programfiles(x86)%\HTML Help Workshop\hhc.exe" ( |
| 3 |
set HELP_COMPILER="%Programfiles(x86)%\HTML Help Workshop\hhc.exe" |
| 4 |
) else ( |
| 5 |
set HELP_COMPILER=C:\progra~1\htmlhe~1\hhc.exe |
| 6 |
) |
| 7 |
|
| 8 |
REM for winxp installation on other drive or other language |
| 9 |
if exist "%Programfiles%\HTML Help Workshop\hhc.exe" ( |
| 10 |
set HELP_COMPILER="%Programfiles%\HTML Help Workshop\hhc.exe" |
| 11 |
) |
| 12 |
|
| 13 |
if defined SystemRoot ( |
| 14 |
set FIND=%SystemRoot%\system32\find.exe |
| 15 |
set CHCP=%SystemRoot%\system32\chcp.com |
| 16 |
) else ( |
| 17 |
set FIND=find.exe |
| 18 |
set CHCP=chcp.exe |
| 19 |
) |
| 20 |
|
| 21 |
set updated= |
| 22 |
|
| 23 |
CALL convtext.bat |
| 24 |
|
| 25 |
REM Check Japanese version Windows |
| 26 |
if "%APPVEYOR%" == "True" goto JA |
| 27 |
%CHCP% | %FIND% "932" > NUL |
| 28 |
if NOT ERRORLEVEL 1 goto JA |
| 29 |
%CHCP% | %FIND% "65001" > NUL |
| 30 |
if NOT ERRORLEVEL 1 goto JA |
| 31 |
goto English |
| 32 |
|
| 33 |
:JA |
| 34 |
for /f "delims=" %%i in ('perl htmlhelp_update_check.pl ja teratermj.chm') do @set updated=%%i |
| 35 |
if "%updated%"=="updated" ( |
| 36 |
perl htmlhelp_index_make.pl ja html -o ja\Index.hhk |
| 37 |
%HELP_COMPILER% ja\teraterm.hhp |
| 38 |
) |
| 39 |
|
| 40 |
:English |
| 41 |
for /f "delims=" %%i in ('perl htmlhelp_update_check.pl en teraterm.chm') do @set updated=%%i |
| 42 |
if "%updated%"=="updated" ( |
| 43 |
perl htmlhelp_index_make.pl en html -o en\Index.hhk |
| 44 |
%HELP_COMPILER% en\teraterm.hhp |
| 45 |
) |
|