Fix help2man formatting.
authorSimon Josefsson <simon@josefsson.org>
Sun, 12 Mar 2006 12:21:49 +0000 (12:21 +0000)
committerSimon Josefsson <simon@josefsson.org>
Sun, 12 Mar 2006 12:21:49 +0000 (12:21 +0000)
src/asn1Coding.c
src/asn1Decoding.c
src/asn1Parser.c

index f195c07..5b004c6 100644 (file)
   #include <getopt.h>
 #endif
 
-char version_man[] = "asn1Coding (GNU libtasn1) " VERSION;
-
-char help_man[] = "asn1Coding generates a DER encoding from a file\n"
-                  "with ASN1 definitions and another one with assignments.\n"
-                  "\n"
-                  "Usage: asn1Coding [options] <file1> <file2>\n"
-                  " <file1> file with ASN1 definitions.\n"
-                  " <file2> file with assignments.\n"
-                  "\n"
+char version_man[] = "asn1Coding (GNU libtasn1) " VERSION "\n"
+  "Written by Fabio Fiorina."
+  "\n"
+  "Copyright (C) 2002, 2006 Free Software Foundation, Inc.\n";
+
+char help_man[] =
+  "Usage: asn1Coding [options] <file1> <file2>\n"
+  "\n"
+  "asn1Coding generates a DER encoding from FILE1\n"
+  "with ASN1 definitions and FILE2 with assignments.\n"
+  "\n"
 #ifdef HAVE_GETOPT_LONG
-                  "Operation modes:\n"
-                  "  -h, --help    shows this message and exit.\n"
-                  "  -v, --version shows version information and exit.\n"
-                  "  -c, --check   checks the syntax only.\n"
-                  "\n"
-                  "Output:\n"
-                  "  -o <file>, --output <file>  output file.\n";
+  "Operation modes:\n"
+  "  -h, --help    shows this message and exit.\n"
+  "  -v, --version shows version information and exit.\n"
+  "  -c, --check   checks the syntax only.\n"
+  "\n"
+  "Output:\n"
+  "  -o <file>, --output <file>  output file.\n"
 #else
-                  "Operation modes:\n"
-                  "  -h    shows this message and exit.\n"
-                  "  -v    shows version information and exit.\n"
-                  "  -c    checks the syntax only.\n"
-                  "\n"
-                  "Output:\n"
-                  "  -o <file>  output file.\n";
+  "Operation modes:\n"
+  "  -h    shows this message and exit.\n"
+  "  -v    shows version information and exit.\n"
+  "  -c    checks the syntax only.\n"
+  "\n"
+  "Output:\n"
+  "  -o <file>  output file.\n"
 #endif
-
+  "Report bugs to <" PACKAGE_BUGREPORT ">.";
 
 #define ASSIGNMENT_SUCCESS 1
 #define ASSIGNMENT_ERROR   2
index 52d8bde..1df53fb 100644 (file)
   #include <getopt.h>
 #endif
 
-char version_man[] = "asn1Decoding (GNU libtasn1) " VERSION;
-
-char help_man[] = "asn1Decoding generates an ASN1 type from a file\n"
-                  "with ASN1 definitions and another one with a DER encoding.\n"
-                  "\n"
-                  "Usage: asn1Decoding [options] <file1> <file2> <type>\n"
-                  " <file1> file with ASN1 definitions.\n"
-                  " <file2> file with a DER coding.\n"
-                  " <type>  ASN1 type name\n"
-                  "\n"
+char version_man[] = "asn1Decoding (GNU libtasn1) " VERSION "\n"
+  "Written by Fabio Fiorina."
+  "\n"
+  "Copyright (C) 2002, 2006 Free Software Foundation, Inc.\n";
+
+char help_man[] =
+  "asn1Decoding generates an ASN1 type from FILE1\n"
+  "with ASN1 definitions and FILE2 with a DER encoding.\n"
+  "\n"
+  "Usage: asn1Decoding [options] <file1> <file2> <type>\n"
+  " <file1> file with ASN1 definitions.\n"
+  " <file2> file with a DER coding.\n"
+  " <type>  ASN1 type name\n"
+  "\n"
 #ifdef HAVE_GETOPT_LONG
-                  "Operation modes:\n"
-                  "  -h, --help    shows this message and exit.\n"
-                  "  -v, --version shows version information and exit.\n"
-                  "  -c, --check   checks the syntax only.\n";
+  "Operation modes:\n"
+  "  -h, --help    shows this message and exit.\n"
+  "  -v, --version shows version information and exit.\n"
+  "  -c, --check   checks the syntax only.\n"
 #else
-                  "Operation modes:\n"
-                  "  -h    shows this message and exit.\n"
-                  "  -v    shows version information and exit.\n"
-                  "  -c    checks the syntax only.\n";
+  "Operation modes:\n"
+  "  -h    shows this message and exit.\n"
+  "  -v    shows version information and exit.\n"
+  "  -c    checks the syntax only.\n"
 #endif
-
-
+  "Report bugs to <" PACKAGE_BUGREPORT ">.";
 
 /********************************************************/
 /* Function : main                                      */
index dec985c..918b3bf 100644 (file)
   #include <getopt.h>
 #endif
 
-char version_man[] = "asn1Parser (GNU libtasn1) " LIBTASN1_VERSION;
-
-char help_man[] = "asn1Parser reads files with ASN1 definitions and\n"
-                  "generates a C array to use with libtasn1 functions.\n"
-                  "\n"
-                  "Usage: asn1Parser [options] file\n"
-                  "\n"
+char version_man[] = "asn1Parser (GNU libtasn1) " LIBTASN1_VERSION "\n"
+  "Written by Fabio Fiorina."
+  "\n"
+  "Copyright (C) 2002, 2006 Free Software Foundation, Inc.\n";
+
+char help_man[] =
+  "Usage: asn1Parser [options] FILE\n"
+  "asn1Parser reads FILE with ASN1 definitions and\n"
+  "generates a C array to use with libtasn1 functions.\n"
+  "\n"
 #ifdef HAVE_GETOPT_LONG
-                  "Operation modes:\n"
-                  "  -h, --help    shows this message and exit\n"
-                  "  -v, --version shows version information and exit.\n"
-                  "  -c, --check   checks the syntax only.\n"
-                  "\n"
-                  "Output:\n"
-                  "  -o <file>, --output <file>  output file\n"
-                  "  -n <name>, --name <name>    array name\n";
+  "Operation modes:\n"
+  "  -h, --help    shows this message and exit\n"
+  "  -v, --version shows version information and exit.\n"
+  "  -c, --check   checks the syntax only.\n"
+  "\n"
+  "Output:\n"
+  "  -o <file>, --output <file>  output file\n"
+  "  -n <name>, --name <name>    array name\n"
 #else
-                  "Operation modes:\n"
-                  "  -h    shows this message and exit\n"
-                  "  -v    shows version information and exit.\n"
-                  "  -c    checks the syntax only.\n"
-                  "\n"
-                  "Output:\n"
-                  "  -o <file>  output file\n"
-                  "  -n <name>  array name\n";
+  "Operation modes:\n"
+  "  -h    shows this message and exit\n"
+  "  -v    shows version information and exit.\n"
+  "  -c    checks the syntax only.\n"
+  "\n"
+  "Output:\n"
+  "  -o <file>  output file\n"
+  "  -n <name>  array name\n"
 #endif
+  "Report bugs to <" PACKAGE_BUGREPORT ">.";
 
 /********************************************************/
 /* Function : main                                      */