[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-mcron] [PATCH 11/33] main: Import the modules used in one time.
From: |
Mathieu Lirzin |
Subject: |
[Bug-mcron] [PATCH 11/33] main: Import the modules used in one time. |
Date: |
Sun, 27 Sep 2015 23:00:22 +0200 |
* scm/mcron/main.scm: Gather module imports.
---
scm/mcron/main.scm | 30 +++++++++---------------------
1 file changed, 9 insertions(+), 21 deletions(-)
diff --git a/scm/mcron/main.scm b/scm/mcron/main.scm
index 53fed6d..9f22a1f 100644
--- a/scm/mcron/main.scm
+++ b/scm/mcron/main.scm
@@ -29,12 +29,16 @@
;; (l0ad "crontab.scm") (sic) is inlined by the makefile. All other
;; functionality comes through modules in .../share/guile/site/mcron/*.scm.
+(use-modules (ice-9 getopt-long)
+ (ice-9 rdelim)
+ (ice-9 regex)
+ (mcron config)
+ (mcron core)
+ (mcron job-specifier)
+ (mcron vixie-specification)
+ (srfi srfi-2))
-
-;; Pull in some constants set by the builder (via autoconf) at configuration
-;; time. Turn debugging on if indicated.
-
-(use-modules (mcron config))
+;; Turn debugging on if indicated.
(if config-debug (begin (debug-enable 'debug)
(debug-enable 'backtrace)))
@@ -44,8 +48,6 @@
;; backwards for the first non-alphabetic character. This allows names like
;; in.cron to be accepted as an invocation of the cron command.
-(use-modules (ice-9 regex) (ice-9 rdelim))
-
(define command-name (match:substring (regexp-exec (make-regexp
"[[:alpha:]]*$")
(car (command-line)))))
@@ -93,8 +95,6 @@
;; all the others, with the --help and --version options common to all the
;; personalities.
-(use-modules (ice-9 getopt-long))
-
(define options
(catch
'misc-error
@@ -234,16 +234,6 @@ reading all the information in the users' crontabs and in
/etc/crontab.\n
(c-set-cron-signals)))
-
-;; Define the functions available to the configuration files. While we're here,
-;; we'll get the core loaded as well.
-
-(use-modules (mcron core)
- (mcron job-specifier)
- (mcron vixie-specification))
-
-
-
;; Procedure to slurp the standard input into a string.
(define (stdin->string)
@@ -349,8 +339,6 @@ reading all the information in the users' crontabs and in
/etc/crontab.\n
;; operation, but we leave it to the permissions on the /var/cron/tabs
directory
;; to enforce this.
-(use-modules (srfi srfi-2)) ;; For and-let*.
-
(define (process-files-in-system-directory)
(catch #t
(lambda ()
- [Bug-mcron] [PATCH 02/33] doc: Include a copy of the GNU FDL., (continued)
- [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, 2015/09/27
- [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 <=
- [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
- [Bug-mcron] [PATCH 27/33] main: Improve 'process-user-file' definition., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 15/33] main: Add docstrings., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 26/33] mcron: Make functions 'static'., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 29/33] environment: Redefine 'modify-environment'., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 17/33] main: Add main., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 21/33] main: Remove obsolete debug option., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 22/33] redirect: Use module (ice-9 regex)., Mathieu Lirzin, 2015/09/27