From cbce8eb293321aef12d153abce31cc3c6ab14f95 Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Thu, 10 Sep 2020 05:48:26 +0100 Subject: Incorporate and use command-line-processor proposed for Guile core Since the elimination of the C wrapping around mcron and all the executable scripts, a weakness in Guile's (ice-9 getopt-long) module means that the command 'mcron -s crontab.scm' does not currently work. A replacement for the getopt-long module, as well as a higher-level 'command-line-processor' facility, have been pushed to the Guile upstream developers and are awaiting approval and incorporation. In the meantime, those modules are temporarily incorporated here into the mcron package, and the code is modified to use those local versions. * Makefile.am: install two new Guile modules * src/{cron,crontab,mcron}.in: use local command-line-processor module * src/mcron/command-line-processor.scm: new module * src/mcron/getopt-long.scm: new module * tests/schedule{,-2}.sh: clarify tests of -s, --schedule options --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c7562c5..09a0d6d 100755 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,9 @@ pkgmoduledir = $(guilesitedir)/$(PACKAGE) pkgmodule_DATA = src/mcron/config.scm dist_pkgmodule_DATA = \ src/mcron/base.scm \ + src/mcron/command-line-processor.scm \ src/mcron/environment.scm \ + src/mcron/getopt-long.scm \ src/mcron/job-specifier.scm \ src/mcron/redirect.scm \ src/mcron/utils.scm \ -- cgit v1.2.3