[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-mcron] [PATCH 05/33] main: Add show-package-information.
From: |
Mathieu Lirzin |
Subject: |
[Bug-mcron] [PATCH 05/33] main: Add show-package-information. |
Date: |
Sun, 27 Sep 2015 22:41:50 +0200 |
* scm/mcron/main.scm (show-package-information): New procedure.
---
scm/mcron/main.scm | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/scm/mcron/main.scm b/scm/mcron/main.scm
index ad4acd9..9de0890 100644
--- a/scm/mcron/main.scm
+++ b/scm/mcron/main.scm
@@ -139,6 +139,15 @@ There is NO WARRANTY, to the extent permitted by law.\n"
(when (option-ref options 'version #f)
(show-version))
+(define (show-package-information)
+ "Display where to get help and send bug reports."
+ (simple-format #t "\nReport bugs to: ~a.\n
+~a home page: <~a>\n
+General help using GNU software: <http://www.gnu.org/gethelp/>\n"
+ config-package-bugreport
+ config-package-name
+ config-package-url))
+
;; If the user asked for the help text of this program, give it to him and get
;; out.
@@ -181,11 +190,9 @@ reading all the information in the users' crontabs and in
/etc/crontab.\n
" -l (list user's crontab)\n"
" -r (delete user's crontab)\n"))
- (else "rubbish"))
-
-"\n\n
-Report bugs to " config-package-bugreport ".\n
-"))
+ (else "rubbish"))))
+ (newline)
+ (show-package-information)
(quit)))
- [Bug-mcron] [PATCH 00/33] Remove 'ed' hack and apply various cleanups., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 01/33] Augment '.gitignore'., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 02/33] doc: Include a copy of the GNU FDL., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 03/33] build: Add package variables., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 06/33] main: Add show-help., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 05/33] main: Add show-package-information.,
Mathieu Lirzin <=
- [Bug-mcron] [PATCH 04/33] main: Add show-version., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 08/33] build: Improve maintainer-clean rule., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 07/33] Augment TODO., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 09/33] build: Generate 'ChangeLog' upon 'make dist'., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 10/33] build: Fix prerequisite of the man page target., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 11/33] main: Import the modules used in one time., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 12/33] main: Use 'when' and 'unless' special forms., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 14/33] main: Make 'catch-mcron-error' macro hygienic., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 16/33] main: Add cron-file-descriptors., Mathieu Lirzin, 2015/09/27