Posted to tcl by bohagan at Fri Nov 01 19:17:07 GMT 2024view raw
- REM HHC Files
- set HHC="%ProgramFiles(x86)%\HTML Help Workshop\hhc.exe"
- set HTMLBASE=TclTk90
- set HHPFILE=%HTMLBASE%.hhp
- set CHMFILE=%HTMLBASE%.chm
- set LOGFILE=%HTMLBASE%.log
- REM TCL
- set TCLSH=C:\TCL9\bin\tclsh90
- set TCLTOOLSDIR=C:\Users\Brian\Documents\Source\Build\tcl9.0.0\tools
- set CWD=%cd%
- REM Doc Dirs
- set HTMLDIR=C:\Users\Brian\Documents\Source\Build\tk9.0.0\html
- set INSTALL_DOC_DIR=C:\TCL9\doc
- REM Create HTML files from man page files
- @echo Convert man files to HTML files
- REM %TCLSH %TCLTOOLSDIR\tcltk-man2html.tcl --verbose "--HTMLDIR=%HTMLDIR%" "--INSTALL_DOC_DIR=%INSTALL_DOC_DIR%"
- cd %HTMLDIR%
- REM Create CHM Config file
- @echo Create config file
- echo [OPTIONS]>%HHPFILE%
- echo Compatibility=1.1 or later>>%HHPFILE%
- echo Compiled file=%CHMFILE%>>%HHPFILE%
- echo Default topic=index.html>>%HHPFILE%
- echo Display compile progress=no>>%HHPFILE%
- echo Error log file=%LOGFILE%>>%HHPFILE%
- echo Full-text search=Yes>>%HHPFILE%
- echo Language=0x409 English (United States)>>%HHPFILE%
- echo Title=Tcl/Tk %TCL_DOTVERSION% Help>>%HHPFILE%
- echo [FILES]>>%HHPFILE%
- echo docs.css>>%HHPFILE%
- echo index.html>>%HHPFILE%
- echo Keywords\*.html>>%HHPFILE%
- echo TclCmd\*.html>>%HHPFILE%
- echo TclLib\*.html>>%HHPFILE%
- echo TkCmd\*.html>>%HHPFILE%
- echo TkLib\*.html>>%HHPFILE%
- echo ItclCmd\*.html>>%HHPFILE%
- echo SqliteCmd\*.html>>%HHPFILE%
- echo TdbcCmd\*.html>>%HHPFILE%
- echo TdbcmysqlCmd\*.html>>%HHPFILE%
- echo TdbcodbcCmd\*.html>>%HHPFILE%
- echo TdbcpostgresCmd\*.html>>%HHPFILE%
- echo TdbcsqliteCmd\*.html>>%HHPFILE%
- echo Thread3.0bCmd\*.html>>%HHPFILE%
- echo ItclLib\*.html>>%HHPFILE%
- echo TdbcLib\*.html>>%HHPFILE%
- echo UserCmd\*.html>>%HHPFILE%
- REM Compile CHM file
- @echo Compiling HTML help project file
- %HHC% %HHPFILE%
- REM Install CHM File
- @echo Installing HTML help project file
- @if not exist %INSTALL_DOC_DIR%\nul mkdir %INSTALL_DOC_DIR%
- xcopy %CHMFILE% %INSTALL_DOC_DIR%
- cd %CWD%
- pause