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