SummaryRefsLogTreeCommitDiffStats
path: root/mcron.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Support VPATH builds.Mathieu Lirzin2016-05-071-1/+9
| | | | | | | | | | | | | | | | | | This allows using 'mcron' before it is installed without hardcoding the local build environment in the executable. * build-aux/pre-inst-env.in: New script. * configure.ac (AC_CONFIG_FILES): Create it. (AC_CONFIG_HEADER): Add 'config.h'. (moduledir): New variable. (PACKAGE_LOAD_PATH): new C preprocessor macro. * mcron.c: Include "config.h". (main): Don't overwrite Guile load paths. (inner_main): Prepend Mcron modules load paths. * Makefile.am (.scm.go, doc/mcron.1): Use 'pre-inst-env'. (mcron_CFLAGS): Remove GUILE_LOAD_PATH macro. (noinst_SCRIPTS): New variable. * .gitignore: Update.
* mcron: Mark local functions as static.Mathieu Lirzin2016-05-071-6/+6
| | | | | * mcron.c (inner_main, react_to_terminal_signal, set_cron_signals): Declare static.
* mcron: Rework comments.Mathieu Lirzin2016-05-071-37/+10
| | | | * mcron.c: Rework comments.
* mcron: Use symbolic constants.Mathieu Lirzin2016-05-071-2/+3
| | | | | * mcron.c (main, react_to_terminal_signal): Use EXIT_SUCCESS and EXIT_FAILURE macros instead of magic numbers.
* mcron: Add forward declarations.Mathieu Lirzin2016-05-071-25/+28
| | | | * mcron.c: Reorder function definitions sequentially.
* main: Add (mcron main) module.Mathieu Lirzin2016-05-071-0/+102
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.