diff options
author | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-11-25 15:48:56 +0000 |
---|---|---|
committer | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-11-25 15:48:56 +0000 |
commit | 900f7f39363ab6b72ec7aeeec48b61b029d0986a (patch) | |
tree | 80cc67d122e3b1f98ebb87dd4d327e15fd1322ea /makehtml.sh | |
parent | 7295d25a24c22c595250495aba6d24ab4f706243 (diff) |
makehtml: proper fix for t4ht
So recent Fedora and some other distros have broken t4ht
packages, making makehtml fail. The correct fix is to put a
working t4ht somewhere in your path.
For example, for Fedora one can get an old copy from here:
http://pkgs.fedoraproject.org/repo/pkgs/tetex-tex4ht/tex4ht-1.0.2008_02_28_2058.tar.gz/dc9d78c8ad22acd4b40dfd2cbbe2b8de/tex4ht-1.0.2008_02_28_2058.tar.gz
after unpacking, t4ht is under ./bin/linux/t4ht, put it on path.
tex4ht.env is under texmf/tex4ht/base/unix/tex4ht.env, put it
in $HOME (you can rename it .tex4ht) or under current directory.
Revert the work-around in makehtml, but keep it around
in a comment for people who want to use it.
alternatively, someone might want to implement auto-detection
of the broken t4ht and apply the work-around automatically.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@125 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'makehtml.sh')
-rwxr-xr-x | makehtml.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/makehtml.sh b/makehtml.sh index bc65b6d..a708775 100755 --- a/makehtml.sh +++ b/makehtml.sh @@ -2,7 +2,9 @@ SPECDOC=virtio-v1.0-csd01-html -PATH=.:${PATH} htlatex $SPECDOC.tex "virtiohtml,info,charset=utf-8" " -cunihtf -utf8" +#uncomment if you have a broken t4ht +#PATH=./t4ht-workaround:${PATH} htlatex $SPECDOC.tex "virtiohtml,info,charset=utf-8" " -cunihtf -utf8" +htlatex $SPECDOC.tex "virtiohtml,info,charset=utf-8" " -cunihtf -utf8" rm $SPECDOC.aux mv $SPECDOC.html $SPECDOC.tmp1 @@ -15,6 +17,7 @@ sed 's/~</"</g' $SPECDOC.tmp4 >$SPECDOC.tmp5 mv $SPECDOC.tmp5 $SPECDOC.html rm $SPECDOC.tmp* -cp virtio-v1.0-csd01.css $SPECDOC.css +#uncomment if you have a broken t4ht +#cp ./t4ht-workaround/virtio-v1.0-csd01.css $SPECDOC.css zip $SPECDOC.zip $SPECDOC.html $SPECDOC.css images/*.png |