[Ttssh2-commit] [5362] 日本語版Windows 以外でも動作するように修正した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2013年 8月 18日 (日) 19:50:37 JST


Revision: 5362
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5362
Author:   yutakapon
Date:     2013-08-18 19:50:37 +0900 (Sun, 18 Aug 2013)
Log Message:
-----------
日本語版Windows 以外でも動作するように修正した。

cf.
http://logmett.com/forum/viewtopic.php?f=2&t=2338

Modified Paths:
--------------
    trunk/doc/makechm.bat

-------------- next part --------------
Modified: trunk/doc/makechm.bat
===================================================================
--- trunk/doc/makechm.bat	2013-08-18 10:32:08 UTC (rev 5361)
+++ trunk/doc/makechm.bat	2013-08-18 10:50:37 UTC (rev 5362)
@@ -5,16 +5,26 @@
 	set HELP_COMPILER=C:\progra~1\htmlhe~1\hhc.exe
 )
 
+REM for winxp installation on other drive or other languaje
+if exist "%Programfiles%\HTML Help Workshop\hhc.exe" (
+set HELP_COMPILER="%Programfiles%\HTML Help Workshop\hhc.exe"
+)
+
 set updated=
 
 CALL convtext.bat
 
+REM Check Japanese version Windows
+chcp | find "932" > NUL
+if ERRORLEVEL 1 goto English
+
 for /f "delims=" %%i in ('perl htmlhelp_update_check.pl ja teratermj.chm') do @set updated=%%i
 if "%updated%"=="updated" (
 perl htmlhelp_index_make.pl ja html > ja\Index.hhk
 %HELP_COMPILER% ja\teraterm.hhp
 )
 
+:English
 for /f "delims=" %%i in ('perl htmlhelp_update_check.pl en teraterm.chm') do @set updated=%%i
 if "%updated%"=="updated" (
 perl htmlhelp_index_make.pl en html > en\Index.hhk



Ttssh2-commit メーリングリストの案内
Back to archive index