From 900f7f39363ab6b72ec7aeeec48b61b029d0986a Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Mon, 25 Nov 2013 15:48:56 +0000 Subject: 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 git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@125 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- makehtml.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'makehtml.sh') 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/~$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 -- cgit v1.2.3