Skip to content

Commit

Permalink
Support building docs in both split and full HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Feb 14, 2010
1 parent fac0e58 commit 41b9ffa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -30,3 +30,5 @@ docs/images/status.png
twisted/
docs/buildbot
docs/version.texinfo
docs/docs.tgz
docs/latest
19 changes: 13 additions & 6 deletions docs/Makefile
@@ -1,18 +1,25 @@
all: docs.tgz

VERSION=$(shell python -c 'g = {}; execfile("../buildbot/__init__.py",g); print g["version"]')

buildbot.info: buildbot.texinfo
python version.py > version.texinfo
echo "@set VERSION $(VERSION)" > version.texinfo
makeinfo --fill-column=70 $<

buildbot.html: buildbot.texinfo images-png
python version.py > version.texinfo
echo "@set VERSION $(VERSION)" > version.texinfo
makeinfo --no-split --html $<

buildbot: buildbot.texinfo images-png
python version.py > version.texinfo
makeinfo --html $<
docs.tgz: buildbot.html images-png
echo "@set VERSION $(VERSION)" > version.texinfo
rm -rf $(VERSION)
makeinfo --html --output $(VERSION) buildbot.texinfo
cp buildbot.html $(VERSION)/full.html
tar -zcf $@ $(VERSION)

buildbot.ps: buildbot.texinfo images-eps
python version.py > version.texinfo
echo "@set VERSION $(VERSION)" > version.texinfo
rm -rf buildbot
texi2dvi $<
dvips buildbot.dvi
rm buildbot.aux buildbot.cp buildbot.cps buildbot.fn buildbot.ky buildbot.log buildbot.pg buildbot.toc buildbot.tp buildbot.vr
Expand Down

0 comments on commit 41b9ffa

Please sign in to comment.