From 5923ad488a1eb3c41e07cf598c1251ce07ea6c04 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 4 Nov 2018 15:37:15 +0100 Subject: [PATCH] Move cron library code to crond Nothing else uses it. Signed-off-by: David Oberhollenzer --- crond/Makemodule.am | 4 +++- {lib/cron => crond}/cronscan.c | 0 {lib/cron => crond}/crontab.c | 0 {lib/include => crond}/crontab.h | 0 {lib/cron => crond}/delcron.c | 0 {lib/cron => crond}/rdcron.c | 0 lib/Makemodule.am | 9 ++------- 7 files changed, 5 insertions(+), 8 deletions(-) rename {lib/cron => crond}/cronscan.c (100%) rename {lib/cron => crond}/crontab.c (100%) rename {lib/include => crond}/crontab.h (100%) rename {lib/cron => crond}/delcron.c (100%) rename {lib/cron => crond}/rdcron.c (100%) diff --git a/crond/Makemodule.am b/crond/Makemodule.am index fb52b9a..b2eb1c7 100644 --- a/crond/Makemodule.am +++ b/crond/Makemodule.am @@ -1,9 +1,11 @@ if GCROND gcrond_SOURCES = crond/main.c crond/gcrond.h crond/runjob.c +gcrond_SOURCES += crond/rdcron.c crond/delcron.c crond/crontab.c +gcrond_SOURCES += crond/cronscan.c crond/crontab.h gcrond_CPPFLAGS = $(AM_CPPFLAGS) gcrond_CFLAGS = $(AM_CFLAGS) gcrond_LDFLAGS = $(AM_LDFLAGS) -gcrond_LDADD = libcron.a libcfg.a libutil.a +gcrond_LDADD = libcfg.a libutil.a sbin_PROGRAMS += gcrond endif diff --git a/lib/cron/cronscan.c b/crond/cronscan.c similarity index 100% rename from lib/cron/cronscan.c rename to crond/cronscan.c diff --git a/lib/cron/crontab.c b/crond/crontab.c similarity index 100% rename from lib/cron/crontab.c rename to crond/crontab.c diff --git a/lib/include/crontab.h b/crond/crontab.h similarity index 100% rename from lib/include/crontab.h rename to crond/crontab.h diff --git a/lib/cron/delcron.c b/crond/delcron.c similarity index 100% rename from lib/cron/delcron.c rename to crond/delcron.c diff --git a/lib/cron/rdcron.c b/crond/rdcron.c similarity index 100% rename from lib/cron/rdcron.c rename to crond/rdcron.c diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 11a96e5..5ce7239 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -17,11 +17,6 @@ libcfg_a_SOURCES += lib/libcfg/pack_argv.c lib/include/libcfg.h libcfg_a_CPPFLAGS = $(AM_CPPFLAGS) libcfg_a_CFLAGS = $(AM_CFLAGS) -libcron_a_SOURCES = lib/cron/rdcron.c lib/cron/delcron.c lib/cron/crontab.c -libcron_a_SOURCES += lib/cron/cronscan.c lib/include/crontab.h -libcron_a_CPPFLAGS = $(AM_CPPFLAGS) -libcron_a_CFLAGS = $(AM_CFLAGS) +EXTRA_DIST += $(HEADRS) lib/include/libcfg.h -EXTRA_DIST += $(HEADRS) lib/include/libcfg.h lib/include/crontab.h - -noinst_LIBRARIES += libinit.a libcfg.a libcron.a libutil.a +noinst_LIBRARIES += libinit.a libcfg.a libutil.a