From edea7e37d08e3045f4e7932ed74e09b5b8dc5c5c Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 18 Jan 2010 19:05:31 +0530 Subject: Show authors and documenters when license is requested --- src/main.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index e141439..2dc5e50 100644 --- a/src/main.c +++ b/src/main.c @@ -32,6 +32,7 @@ #include "main.h" #include "anonymous.h" +#include "authors.h" #include "buffer.h" #include "conf.h" #include "daemon.h" @@ -92,9 +93,13 @@ display_version (void) static void display_license (void) { + const char * const *authors; + const char * const *documenters; + display_version (); printf ("\ +\n\ Copyright 1998 Steven Young (sdyoung@well.com)\n\ Copyright 1998-2002 Robert James Kaes (rjkaes@users.sourceforge.net)\n\ Copyright 1999 George Talusan (gstalusan@uwaterloo.ca)\n\ @@ -114,7 +119,26 @@ display_license (void) \n\ You should have received a copy of the GNU General Public License\n\ along with this program; if not, write to the Free Software\n\ - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n"); + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n\ +\n"); + + authors = authors_get_authors (); + + printf ("\nAUTHORS:\n"); + while (*authors) { + printf (" %s\n", *authors); + authors++; + } + + documenters = authors_get_documenters (); + + printf ("\nDOCUMENTERS:\n"); + while (*documenters) { + printf (" %s\n", *documenters); + documenters++; + } + + printf ("\n"); } /* -- cgit v1.2.3