File: go

package info (click to toggle)
cpdf 2.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,828 kB
  • sloc: ml: 34,724; makefile: 65; sh: 45
file content (25 lines) | stat: -rwxr-xr-x 787 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#Move files around
cp -r ../manualimages .
cp ../logo.pdf .
cp ../Changes .
mkdir ../camlpdf
cp ../../camlpdf/Changes ../camlpdf/Changes
cp ../cpdfmanual.tex .

#Remove tagging
sed -i '' 's/\\DocumentMetadata/\%\\DocumentMetadata/' cpdfmanual.tex

#Typeset to HTML
htlatex cpdfmanual "html,2"

#Pad frames
sed -i '' 's/.framedenv{border: 1px solid black;}/.framedenv{border: 1px solid black; padding: 8px}/g' cpdfmanual.css

#Remove tex4ht's attempt at box-drawing characters for struct trees
LCTYPE=C LANG=C sed -i '' 's/__/\ \ /g' *.html

#Make sure HTML files have a lang set
LCTYPE=C LANG=C sed -i '' 's/<html >/<html lang="en">/g' *.html

#Give the main page a title
LCTYPE=C LANG=C sed -i '' 's/<title>/<title>Coherent PDF Command Line Tools Manual/' cpdfmanual.html