summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-11-25 15:48:56 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-11-25 15:48:56 +0000
commit900f7f39363ab6b72ec7aeeec48b61b029d0986a (patch)
tree80cc67d122e3b1f98ebb87dd4d327e15fd1322ea
parent7295d25a24c22c595250495aba6d24ab4f706243 (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
-rwxr-xr-xmakehtml.sh7
-rwxr-xr-xt4ht-workaround/t4ht (renamed from t4ht)0
-rw-r--r--t4ht-workaround/virtio-v1.0-csd01.css (renamed from virtio-v1.0-csd01.css)0
3 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
diff --git a/t4ht b/t4ht-workaround/t4ht
index 2b6e781..2b6e781 100755
--- a/t4ht
+++ b/t4ht-workaround/t4ht
diff --git a/virtio-v1.0-csd01.css b/t4ht-workaround/virtio-v1.0-csd01.css
index f5342e8..f5342e8 100644
--- a/virtio-v1.0-csd01.css
+++ b/t4ht-workaround/virtio-v1.0-csd01.css