From 362493686d5d58634f098d9c74c0427e830a2475 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 18 Feb 2003 12:55:25 +0000 Subject: [PATCH] A more standard --version output. --- ChangeLog | 3 +++ src/options.cc | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index eb8b38e..ad7cda6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-11-17 Bruno Haible + * src/options.cc (Options::parse_options): Include copyright notice + and authors in --version output. + Avoid artificial duplicates. * src/keyword.h (KeywordExt::init_selchars_tuple): New declaration. (KeywordExt::init_selchars_multiset): Renamed from diff --git a/src/options.cc b/src/options.cc index d7f670d..f743738 100644 --- a/src/options.cc +++ b/src/options.cc @@ -901,6 +901,13 @@ Options::parse_options (int argc, char *argv[]) } case 'v': /* Print out the version and quit. */ fprintf (stdout, "GNU gperf %s\n", version_string); + fprintf (stdout, "Copyright (C) %s Free Software Foundation, Inc.\n\ +This is free software; see the source for copying conditions. There is NO\n\ +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\ +", + "1989-1998, 2000-2002"); + fprintf (stdout, "Written by %s and %s.\n", + "Douglas C. Schmidt", "Bruno Haible"); exit (0); case 'W': /* Sets the name for the hash table array */ {