#! /bin/sh -e
## 11_export_manpage done by Radu Spineanu <radu@timisoara.roedu.net>
## DP: Fixes an incorrect example in the manpage, and adds a clarification 
## DP: to the -m argument


if [ $# -lt 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
       -patch) patch -f --no-backup-if-mismatch -p1 < $0;;

       -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;

        *)
                echo >&2 \
                  "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0


@DPATCH@
diff -Naur flow-tools-0.68.old/docs/flow-export.1 flow-tools-0.68/docs/flow-export.1
--- flow-tools-0.68.old/docs/flow-export.1	2005-11-28 22:56:49.446403656 +0200
+++ flow-tools-0.68/docs/flow-export.1	2005-11-28 23:05:07.801642144 +0200
@@ -75,8 +75,9 @@
 .IP "-h" 10
 Display help\&.
 .IP "-m\fI mask_fields\fP" 10
-Select fields for MySQL, PostgresSQL, cflowd, and ASCII formats\&.  The
-\fImask_fields\fP is built from a bitwise OR of the following:
+Select fields for MySQL, PostgresSQL, cflowd, and ASCII formats\&. 
+Add the mask arguments in the order shown below. The \fImask_fields\fP 
+is built from a bitwise OR of the following:
 .IP "" 10
 .PP
 .nf
@@ -183,7 +184,7 @@
 Export the flow-tools file \fBflows\fP to an MySQL Database\&.
 Include only SRCADDR, DSTADDR and DOCTETS\&.
 .PP
-  \fBflow-export -f3 -mSRCADDR,DSTADDR,DOCTETS -u "user:password:host:port:name:table" < flows \fP
+  \fBflow-export -f3 -mDOCTETS,SRCADDR,DSTADDR -u "user:password:host:port:name:table" < flows \fP
 .SH "BUGS"
 .PP
 The pcap format is a hack\&.
