From 5f12dc0fbed9806ea89913a432a3f4c62ac851c8 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sun, 12 Mar 2006 12:21:49 +0000 Subject: Fix help2man formatting. --- src/asn1Coding.c | 50 ++++++++++++++++++++++++++------------------------ src/asn1Decoding.c | 43 +++++++++++++++++++++++-------------------- src/asn1Parser.c | 50 +++++++++++++++++++++++++++----------------------- 3 files changed, 76 insertions(+), 67 deletions(-) diff --git a/src/asn1Coding.c b/src/asn1Coding.c index f195c07..5b004c6 100644 --- a/src/asn1Coding.c +++ b/src/asn1Coding.c @@ -39,33 +39,35 @@ #include #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] \n" - " file with ASN1 definitions.\n" - " 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] \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 , --output 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 , --output 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 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 output file.\n" #endif - + "Report bugs to <" PACKAGE_BUGREPORT ">."; #define ASSIGNMENT_SUCCESS 1 #define ASSIGNMENT_ERROR 2 diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c index 52d8bde..1df53fb 100644 --- a/src/asn1Decoding.c +++ b/src/asn1Decoding.c @@ -39,29 +39,32 @@ #include #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] \n" - " file with ASN1 definitions.\n" - " file with a DER coding.\n" - " 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] \n" + " file with ASN1 definitions.\n" + " file with a DER coding.\n" + " 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 */ diff --git a/src/asn1Parser.c b/src/asn1Parser.c index dec985c..918b3bf 100644 --- a/src/asn1Parser.c +++ b/src/asn1Parser.c @@ -39,32 +39,36 @@ #include #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 , --output output file\n" - " -n , --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 , --output output file\n" + " -n , --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 output file\n" - " -n 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 output file\n" + " -n array name\n" #endif + "Report bugs to <" PACKAGE_BUGREPORT ">."; /********************************************************/ /* Function : main */ -- cgit v1.2.3