The FAQ is now located in help/

svn path=/trunk/; revision=9373
This commit is contained in:
Jörg Mayer 2003-12-21 03:06:49 +00:00
parent 5dafc027dc
commit 77c6d4e968
1 changed files with 8 additions and 3 deletions

View File

@ -1,12 +1,12 @@
#!/bin/sh
#
# $Id: make-faq,v 1.4 2003/03/02 17:42:28 jmayer Exp $
# $Id: make-faq,v 1.5 2003/12/21 03:06:49 jmayer Exp $
#
# Make-faq - Creates a plain text version of the Ethereal FAQ
# from http://www.ethereal.com/faq
# Split the FAQ every LINECOUNT lines so the strings don't become too long
# for # some compilers.
# for some compilers.
LINECOUNT=400
rm -f FAQ
@ -25,10 +25,11 @@ EOF
lynx -dump -nolist "http://www.ethereal.com/faq" | sed -e '1,/INDEX/d' >>FAQ
# Create an #include'able version for gtk/help_dlg.c
# Create an #include'able version for help/faq.h
rm -f FAQ.include FAQTMP*
split -l $LINECOUNT FAQ FAQTMP
NUM=0
echo "/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY!!! */" >FAQ.include
echo "const char *faq_part[] = {" >>FAQ.include
for i in FAQTMP*; do
if [ $NUM -ne 0 ]; then
@ -44,4 +45,8 @@ SIZE=`wc -c FAQ | tr -d ' A-Za-z'`
echo "#define FAQ_SIZE $SIZE" >>FAQ.include
rm -f FAQTMP*
echo
echo "Now move FAQ to help/faq.txt and FAQ.include to help/faq.h"
echo
exit 0