annotate en/htlatex.book @ 170:9cd856b4bd21

Try to make HTML build a bit more portable.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 26 Mar 2007 23:55:21 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
170
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
1 #!/bin/bash
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
2 #
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
3 # This script is horrible. It's essentially a hacked copy of
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
4 # /usr/bin/htlatex from Fedora Core 6. I apologise for any lasting
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
5 # pain reading it causes.
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
6
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
7 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
8 (cd $4 && bibtex hgbook)
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
9 (cd $4 && makeindex hgbook)
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
10 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
11 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
12 echo status $$