-
Notifications
You must be signed in to change notification settings - Fork 1
/
fixdocs.sh
48 lines (42 loc) · 1.04 KB
/
fixdocs.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
#
# Script to generate CHM docs.
# (C) 2009 Marco van de Voort Initial version
#
# Needs more errorchecking.
export FPCSRCDIR=/fpc/fpctrunk
make HTMLFMT=chm html CSSFILE=$FPCSRCDIR/utils/fpdoc/fpdoc.css FPDOC=fpdoc FPCSRCDIR=$FPCSRCDIR 2>&1 |tee buildlog.txt
cd src
fpc relinkdocs.pp
fpc compilelatexchm.pp
fpc gentoc
cd ..
cd dist/html
../../src/relinkdocs
rm -rf prog-old
rm -rf ref-old
rm -rf user-old
mv prog prog-old
mv ref ref-old
mv user user-old
mv prog-fixed prog
mv ref-fixed ref
mv user-fixed user
cp prog-old/*.png prog
cp prog-old/*.kwd prog
cp prog-old/*.css prog
cp user-old/*.png user
cp user-old/*.kwd user
cp user-old/*.css user
cp ref-old/*.png ref
cp ref-old/*.kwd ref
cp ref-old/*.css ref
cp -r ../../pics prog/
cp -r ../../pics user/
cp -r ../../pics .
../../src/compilelatexchm prog "Programmer's Guide"
../../src/compilelatexchm user "User's Guide"
../../src/compilelatexchm ref "Reference Guide" ref/ref.kwd
../../src/compilelatexchm fpdoc "FPDoc documentation"
../../src/gentoc . .
rm fpdoc.kwd user.kwd prog.kwd