From Sebastien Tandeil:
[obnox/wireshark/wip.git] / make-faq
1 #!/bin/sh
2 #
3 # $Id$
4 #
5 # Make-faq - Creates a plain text version of the Wireshark FAQ
6 #       from http://www.wireshark.org/faq.html
7
8 rm -f FAQ
9 cat >FAQ <<EOF
10
11    The Wireshark FAQ
12
13    Note: This is just an ASCII snapshot of the faq and may not be up to
14          date. Please go to http://www.wireshark.org/faq.html for the up
15          to date version. The version of this snapshot can be found at
16          the end of this document.
17
18    INDEX
19
20 EOF
21
22 lynx -dump -nolist "http://www.wireshark.org/faq_plain.html" | \
23         sed -e '1,/^Index/d' >>FAQ
24
25 echo
26 echo "Now verfiy everything is OK and copy FAQ to help/faq.txt"
27 echo "To verify run: diff -u help/faq.txt FAQ"
28 echo
29
30 exit 0