aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.cvsignore1
-rwxr-xr-xmake-faq28
2 files changed, 2 insertions, 27 deletions
diff --git a/.cvsignore b/.cvsignore
index 1707a9fc09..1a5ee762f0 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -9,7 +9,6 @@
.deps
.gdb_history
.libs
-FAQTMP*
Makefile
Makefile.in
aclocal.m4
diff --git a/make-faq b/make-faq
index 357ee19d4b..9311f170c6 100755
--- a/make-faq
+++ b/make-faq
@@ -1,14 +1,10 @@
#!/bin/sh
#
-# $Id: make-faq,v 1.5 2003/12/21 03:06:49 jmayer Exp $
+# $Id: make-faq,v 1.6 2003/12/21 03:16:48 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.
-LINECOUNT=400
-
rm -f FAQ
cat >FAQ <<EOF
@@ -25,28 +21,8 @@ EOF
lynx -dump -nolist "http://www.ethereal.com/faq" | sed -e '1,/INDEX/d' >>FAQ
-# 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
- echo "," >>FAQ.include
- echo >>FAQ.include
- fi
- sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$/\\n"/' <$i >>FAQ.include
- NUM=`expr $NUM + 1`
-done
-echo "};" >>FAQ.include
-echo "#define FAQ_PARTS $NUM" >>FAQ.include
-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 "Now verfiy everything is OK and move FAQ to help/faq.txt"
echo
exit 0