aboutsummaryrefslogtreecommitdiffstats
path: root/make-faq
blob: d989e2884d8370414f17b32d87d235dc4cc64334 (plain)
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
#!/bin/sh
#
# $Id$
#
# Make-faq - Creates a plain text version of the Wireshark FAQ
#	from http://www.wireshark.org/faq.html

rm -f FAQ
cat >FAQ <<EOF

   The Wireshark FAQ

   Note: This is just an ASCII snapshot of the faq and may not be up to
         date. Please go to http://www.wireshark.org/faq.html for the up
         to date version. The version of this snapshot can be found at
         the end of this document.

   INDEX

EOF

lynx -dump -nolist "http://www.wireshark.org/faq_plain.html" | \
	sed -e '1,/^ *Index$/d' >>FAQ

echo
echo "Now verfiy everything is OK and copy FAQ to help/faq.txt"
echo "To verify run: diff -u help/faq.txt FAQ"
echo

exit 0