diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-21 03:17:54 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-21 03:17:54 +0000 |
commit | fd2ea6a540e14f4ab2289bd1ff3d4d47a588a84c (patch) | |
tree | eaf398c593f2ad5340c8e20b49ad9254d1e502cd /make-faq | |
parent | 9798e7475d5cbb35cf67cdd1b3613ebae6e3ba6d (diff) |
The include file is generated elsewhere
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9374 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'make-faq')
-rwxr-xr-x | make-faq | 28 |
1 files changed, 2 insertions, 26 deletions
@@ -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 |