main: Add (mcron main) module.
Remove 'ed' hack to eval content of scm/mcron/main.scm in the C wrapper. Use proper libguile functions instead. * scm/mcron/main.scm (mcron main): New module. (show-version, show-package-information, show-help, main): Remove extra newline characters in strings. * mcron.c.template: Rename to ... * mcron.c: ... this. (inner_main): Set current module to (mcron main). * makefile.ed: Delete file. * configure.ac: Remove check for 'ed'. * makefile.am: Adjust accordingly. * .gitignore: Likewise.
This commit is contained in:
parent
237c234f39
commit
3c903bfc80
7 changed files with 152 additions and 226 deletions
11
makefile.am
11
makefile.am
|
|
@ -21,12 +21,9 @@
|
|||
|
||||
SUBDIRS = scm/mcron .
|
||||
|
||||
ED = @ED@ # !!!! Are these needed?
|
||||
CP = @CP@
|
||||
|
||||
CLEANFILES = mcron.c
|
||||
|
||||
EXTRA_DIST = makefile.ed mcron.c.template BUGS ChangeLog.old
|
||||
EXTRA_DIST = BUGS ChangeLog.old
|
||||
|
||||
info_TEXINFOS = doc/mcron.texi
|
||||
doc_mcron_TEXINFOS = doc/fdl.texi
|
||||
|
|
@ -40,12 +37,6 @@ mcron_LDADD = @GUILE_LIBS@
|
|||
# in turn so that we can do mcron --help during the build process.
|
||||
mcron_CFLAGS = @GUILE_CFLAGS@ -DGUILE_LOAD_PATH=\"$(datadir):./scm:...\"
|
||||
|
||||
|
||||
mcron.c : scm/mcron/main.scm scm/mcron/crontab.scm makefile.ed mcron.c.template
|
||||
@echo 'Building mcron.c...'
|
||||
@$(ED) < makefile.ed > /dev/null 2>&1
|
||||
@rm -f mcron.escaped.scm > /dev/null 2>&1
|
||||
|
||||
dist-hook: gen-ChangeLog
|
||||
|
||||
gen_start_date = 2015-06-26
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue