aboutsummaryrefslogtreecommitdiffstats
path: root/make-faq
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2003-12-21 03:06:49 +0000
committerJörg Mayer <jmayer@loplof.de>2003-12-21 03:06:49 +0000
commit77c6d4e968aae137b60e0f746882833b0f36d34e (patch)
treea48b2a0b03fe05b72dbabe484cf5ba1800ddd1e9 /make-faq
parent5dafc027dc2a50ecad1c0719a9cc778cadea220c (diff)
The FAQ is now located in help/
svn path=/trunk/; revision=9373
Diffstat (limited to 'make-faq')
-rwxr-xr-xmake-faq11
1 files changed, 8 insertions, 3 deletions
diff --git a/make-faq b/make-faq
index 0b16f88f84..357ee19d4b 100755
--- a/make-faq
+++ b/make-faq
@@ -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