Fix bug #500, typo (server_setid should be server_set_id) in chapter 37.
[users/heiko/exim.git] / doc / doc-scripts / BuildFAQ
1 #! /bin/sh
2 # $Cambridge: exim/doc/doc-scripts/BuildFAQ,v 1.2 2004/10/15 13:20:28 ph10 Exp $
3
4 # Script to build the Exim FAQ in text and HTML formats.
5
6 /bin/rm -f FAQ.txt* html/FAQ* FAQ-html/* FAQ-html.tar.*
7 /bin/rm -f config.samples.tar.gz config.samples.tar.bz2
8
9 # The FAQchk Perl script checks for the numbers being in order and for the
10 # right number of blank lines at various places.
11
12 faqchk FAQ.src
13 if [ $? != 0 ]; then exit 1; fi
14
15 # HTML version
16
17 f2h FAQ.src html
18 echo "html/FAQ*.html made"
19
20 fc2k
21 echo "html/FAQ-KWIC*.html made"
22
23 cp html/FAQ* html/*.txt FAQ-html
24 echo "copied to FAQ-html"
25
26 tar cf FAQ-html.tar FAQ-html
27 gzip FAQ-html.tar
28 echo "FAQ-html.tar.gz made"
29
30 tar cf FAQ-html.tar FAQ-html
31 bzip2 -9 FAQ-html.tar
32 echo "FAQ-html.tar.gz2 made"
33
34 # ASCII version
35
36 f2txt FAQ.src FAQ.txt
37 echo "FAQ.txt made"
38
39 cp FAQ.txt FAQ.txt-t
40 gzip -v --best FAQ.txt-t
41 mv FAQ.txt-t.gz FAQ.txt.gz
42 echo "FAQ.txt.gz made"
43
44 cp FAQ.txt FAQ.txt-t
45 bzip2 -v -9 FAQ.txt-t
46 mv FAQ.txt-t.bz2 FAQ.txt.bz2
47 echo "FAQ.txt.bz2 made"
48
49 # Configuration samples
50
51 tar -chf config.samples.tar config.samples
52 gzip config.samples.tar
53 echo "config.samples.tar.gz made"
54
55 tar -chf config.samples.tar config.samples
56 bzip2 -9 config.samples.tar
57 echo "config.samples.tar.bz2 made"
58
59 # End