diff options
author | James Youngman <jay@gnu.org> | 2016-01-24 22:27:44 +0000 |
---|---|---|
committer | James Youngman <jay@gnu.org> | 2016-01-25 23:56:17 +0000 |
commit | f535461241e8f9c4738b435c6af892decb92d829 (patch) | |
tree | 3cf4f7e63b968bbf973870bc9e3f8b6e4856ecf0 /locate/locate.c | |
parent | b182bf64dbfe1e1f876b6839e64bfe459563437f (diff) | |
download | findutils-f535461241e8f9c4738b435c6af892decb92d829.tar.gz |
Better and more consistent guidance on how to report bugs.
* configure.ac (PACKAGE_BUGREPORT_URL): Define this macro to point
to the findutils bug-reporting web page.
* lib/bugreports.c: New file, defining the function
explain_how_to_report_bugs which explains how to report bugs. Use
the new PACKAGE_BUGREPORT_URL macro.
* lib/bugreports.h: New file, providing a declaration of
explain_how_to_report_bugs.
* lib/Makefile.am (libfind_a_SOURCES): Add bugreports.c and
bugreports.h.
* find/parser.c (parse_help): Call explain_how_to_report_bugs
instead of printing an explanation here.
* xargs/xargs.c (usage): Likewise.
* locate/locate.c (usage): Likewise.
* locate/code.c (usage): Likewise.
* locate/frcode.c (usage): Likewise.
* locate/updatedb.sh (usage): Produce a similar message
by including it in the usage text itself.
Diffstat (limited to 'locate/locate.c')
-rw-r--r-- | locate/locate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/locate/locate.c b/locate/locate.c index 55f08b20..a50c2b1b 100644 --- a/locate/locate.c +++ b/locate/locate.c @@ -98,6 +98,7 @@ #include "findutils-version.h" #include "locatedb.h" #include "printquoted.h" +#include "bugreports.h" #include "splitstring.h" @@ -1393,7 +1394,7 @@ Usage: %s [-d path | --database=path] [-e | -E | --[non-]existing]\n\ [--max-database-age D] [--version] [--help]\n\ pattern...\n"), program_name); - fputs (_("\nReport bugs to <bug-findutils@gnu.org>.\n"), stream); + explain_how_to_report_bugs (stdout, program_name); } enum { |