2 # $Cambridge: exim/doc/doc-scripts/BuildFAQ,v 1.1 2004/10/07 15:04:35 ph10 Exp $
4 # Script to build the Exim FAQ in text and HTML formats.
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
9 # The FAQchk Perl script checks for the numbers being in order and for the
10 # right number of blank lines at various places.
13 if [ $? != 0 ]; then exit 1; fi
18 echo "html/FAQ*.html made"
21 echo "html/FAQ-KWIC*.html made"
23 cp html/FAQ* html/*.txt FAQ-html
24 echo "copied to FAQ-html"
26 tar cf FAQ-html.tar FAQ-html
28 echo "FAQ-html.tar.gz made"
30 tar cf FAQ-html.tar FAQ-html
32 echo "FAQ-html.tar.gz2 made"
40 gzip -v --best FAQ.txt-t
41 mv FAQ.txt-t.gz FAQ.txt.gz
42 echo "FAQ.txt.gz made"
46 mv FAQ.txt-t.bz2 FAQ.txt.bz2
47 echo "FAQ.txt.bz2 made"
49 # Configuration samples
51 tar cf config.samples.tar config.samples
52 gzip config.samples.tar
53 echo "config.samples.tar.gz made"
55 tar cf config.samples.tar config.samples
56 bzip2 -9 config.samples.tar
57 echo "config.samples.tar.bz2 made"