Posted to tcl by bohagan at Fri Nov 01 19:17:07 GMT 2024view raw

  1.  
  2. REM HHC Files
  3. set HHC="%ProgramFiles(x86)%\HTML Help Workshop\hhc.exe"
  4. set HTMLBASE=TclTk90
  5. set HHPFILE=%HTMLBASE%.hhp
  6. set CHMFILE=%HTMLBASE%.chm
  7. set LOGFILE=%HTMLBASE%.log
  8.  
  9. REM TCL
  10. set TCLSH=C:\TCL9\bin\tclsh90
  11. set TCLTOOLSDIR=C:\Users\Brian\Documents\Source\Build\tcl9.0.0\tools
  12. set CWD=%cd%
  13.  
  14. REM Doc Dirs
  15. set HTMLDIR=C:\Users\Brian\Documents\Source\Build\tk9.0.0\html
  16. set INSTALL_DOC_DIR=C:\TCL9\doc
  17.  
  18. REM Create HTML files from man page files
  19. @echo Convert man files to HTML files
  20. REM %TCLSH %TCLTOOLSDIR\tcltk-man2html.tcl --verbose "--HTMLDIR=%HTMLDIR%" "--INSTALL_DOC_DIR=%INSTALL_DOC_DIR%"
  21.  
  22. cd %HTMLDIR%
  23.  
  24. REM Create CHM Config file
  25. @echo Create config file
  26. echo [OPTIONS]>%HHPFILE%
  27. echo Compatibility=1.1 or later>>%HHPFILE%
  28. echo Compiled file=%CHMFILE%>>%HHPFILE%
  29. echo Default topic=index.html>>%HHPFILE%
  30. echo Display compile progress=no>>%HHPFILE%
  31. echo Error log file=%LOGFILE%>>%HHPFILE%
  32. echo Full-text search=Yes>>%HHPFILE%
  33. echo Language=0x409 English (United States)>>%HHPFILE%
  34. echo Title=Tcl/Tk %TCL_DOTVERSION% Help>>%HHPFILE%
  35. echo [FILES]>>%HHPFILE%
  36. echo docs.css>>%HHPFILE%
  37. echo index.html>>%HHPFILE%
  38. echo Keywords\*.html>>%HHPFILE%
  39. echo TclCmd\*.html>>%HHPFILE%
  40. echo TclLib\*.html>>%HHPFILE%
  41. echo TkCmd\*.html>>%HHPFILE%
  42. echo TkLib\*.html>>%HHPFILE%
  43. echo ItclCmd\*.html>>%HHPFILE%
  44. echo SqliteCmd\*.html>>%HHPFILE%
  45. echo TdbcCmd\*.html>>%HHPFILE%
  46. echo TdbcmysqlCmd\*.html>>%HHPFILE%
  47. echo TdbcodbcCmd\*.html>>%HHPFILE%
  48. echo TdbcpostgresCmd\*.html>>%HHPFILE%
  49. echo TdbcsqliteCmd\*.html>>%HHPFILE%
  50. echo Thread3.0bCmd\*.html>>%HHPFILE%
  51. echo ItclLib\*.html>>%HHPFILE%
  52. echo TdbcLib\*.html>>%HHPFILE%
  53. echo UserCmd\*.html>>%HHPFILE%
  54.  
  55. REM Compile CHM file
  56. @echo Compiling HTML help project file
  57. %HHC% %HHPFILE%
  58.  
  59. REM Install CHM File
  60. @echo Installing HTML help project file
  61. @if not exist %INSTALL_DOC_DIR%\nul mkdir %INSTALL_DOC_DIR%
  62. xcopy %CHMFILE% %INSTALL_DOC_DIR%
  63.  
  64. cd %CWD%
  65. pause
  66.