Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Switch to using Halibut's new direct .CHM generation.
Browse files Browse the repository at this point in the history
This allows me to remove HTML Help Workshop completely from my build
dependencies, and good riddance!
  • Loading branch information
sgtatham committed May 13, 2017
1 parent ce050c5 commit 93931b0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 36 deletions.
9 changes: 1 addition & 8 deletions Buildscr
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ ifneq "$(MAKEARGS)" "" set Makeargs $(Makeargs) $(MAKEARGS)
in putty do ./mksrcarc.sh
in putty do ./mkunxarc.sh '$(Autoconfver)' '$(Uxarcsuffix)' $(Docmakever)
in putty do perl mkfiles.pl
in putty/doc do make $(Docmakever) putty.hlp
in putty/doc do make $(Docmakever) chm
in putty/doc do make $(Docmakever) putty.hlp putty.chm

# Munge the installer script locally so that it reports the version
# we're really building.
Expand Down Expand Up @@ -174,11 +173,6 @@ delegate windows
# arguments and sign them all in place.
ifneq "$(winsigncode)" "" in putty/windows do $(winsigncode) -i https://www.chiark.greenend.org.uk/~sgtatham/putty/ build*/*.exe

# Ignore exit code from hhc, in favour of seeing whether the .chm
# file was created. (Yuck; but hhc appears to return non-zero
# exit codes on whim.)
in putty/doc with htmlhelp do/win hhc putty.hhp & type putty.chm >nul

# Build a WiX MSI installer, for each of build32 and build64.
in putty/windows with wix do/win candle -arch x86 -dWin64=no -dBuilddir=build32\ -dWinver="$(Winver)" -dPuttytextver="$(Puttytextver)" installer.wxs && light -ext WixUIExtension -ext WixUtilExtension -sval installer.wixobj -o installer32.msi
in putty/windows with wix do/win candle -arch x64 -dWin64=yes -dBuilddir=build64\ -dWinver="$(Winver)" -dPuttytextver="$(Puttytextver)" installer.wxs && light -ext WixUIExtension -ext WixUtilExtension -sval installer.wixobj -o installer64.msi
Expand All @@ -196,7 +190,6 @@ delegate windows
return putty/windows/build32/*.map
return putty/windows/build64/*.exe
return putty/windows/build64/*.map
return putty/doc/putty.chm
return putty/windows/installer32.msi
return putty/windows/installer64.msi
return putty/windows/Output/installer.exe
Expand Down
10 changes: 4 additions & 6 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,17 @@ INPUTS = $(patsubst %,%.but,$(CHAPTERS))
HALIBUT = halibut

index.html: $(INPUTS)
$(HALIBUT) --text --html --winhelp $(INPUTS)
$(HALIBUT) --text --html --winhelp --chm $(INPUTS)

# During formal builds it's useful to be able to build this one alone.
# During formal builds it's useful to be able to build these ones alone.
putty.hlp: $(INPUTS)
$(HALIBUT) --winhelp $(INPUTS)
putty.chm: $(INPUTS)
$(HALIBUT) --chm $(INPUTS)

putty.info: $(INPUTS)
$(HALIBUT) --info $(INPUTS)

chm: putty.hhp
putty.hhp: $(INPUTS) chm.but
$(HALIBUT) --html $(INPUTS) chm.but

MKMAN = $(HALIBUT) --man=$@ mancfg.but $<
MANPAGES = putty.1 puttygen.1 plink.1 pscp.1 psftp.1 puttytel.1 pterm.1 \
pageant.1
Expand Down
6 changes: 6 additions & 0 deletions doc/blurb.but
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ page</a>.</p>}

\cfg{info-max-file-size}{0}

\cfg{chm-contents-filename}{index.html}
\cfg{chm-template-filename}{%k.html}
\cfg{chm-head-end}{<link rel="stylesheet" type="text/css" href="chm.css">}
\cfg{chm-extra-file}{chm.css}

\cfg{xhtml-contents-filename}{index.html}
\cfg{text-filename}{puttydoc.txt}
\cfg{winhelp-filename}{putty.hlp}
\cfg{info-filename}{putty.info}
\cfg{chm-filename}{putty.chm}

PuTTY is a free (MIT-licensed) Windows Telnet and SSH client. This
manual documents PuTTY, and its companion utilities PSCP, PSFTP,
Expand Down
22 changes: 0 additions & 22 deletions doc/chm.but

This file was deleted.

0 comments on commit 93931b0

Please sign in to comment.