From 93b25fce232ddde091cd3c63aeff94c2f67f80fb Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Thu, 7 May 2015 14:57:55 +0100 Subject: [PATCH] Refactor tree - move output handlers into new subdir Signed-off-by: Ikey Doherty --- common.mk | 1 + src/Makefile.am | 12 ++++++------ src/{ => output}/cli.c | 0 src/{ => output}/cli.h | 0 src/{ => output}/csv.c | 0 src/{ => output}/csv.h | 0 src/{ => output}/html.c | 0 src/{ => output}/html.h | 0 8 files changed, 7 insertions(+), 6 deletions(-) rename src/{ => output}/cli.c (100%) rename src/{ => output}/cli.h (100%) rename src/{ => output}/csv.c (100%) rename src/{ => output}/csv.h (100%) rename src/{ => output}/html.c (100%) rename src/{ => output}/html.h (100%) diff --git a/common.mk b/common.mk index 5f29944..3817f24 100644 --- a/common.mk +++ b/common.mk @@ -9,6 +9,7 @@ AM_CPPFLAGS = \ -I $(top_srcdir)/src \ -I $(top_srcdir)/src/packaging \ -I $(top_srcdir)/src/library \ + -I $(top_srcdir)/src/output \ -DDATA_DIRECTORY=\"$(datadir)/cve-check-tool\" \ -DSITE_PATH=\"$(sysconfdir)\" -DDEFAULT_PATH=\"$(datadir)/defaults/cve-check-tool\" \ -DTOP_DIR=\"$(abs_top_srcdir)\" diff --git a/src/Makefile.am b/src/Makefile.am index 3122960..73a5b6d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,12 +8,12 @@ bin_PROGRAMS = cve-check-tool cve_check_tool_SOURCES = \ main.c \ - html.c \ - html.h \ - cli.c \ - cli.h \ - csv.c \ - csv.h \ + output/cli.c \ + output/cli.h \ + output/csv.c \ + output/csv.h \ + output/html.c \ + output/html.h \ library/cve-check-tool.h \ library/cve-string.h \ library/cve-string.c \ diff --git a/src/cli.c b/src/output/cli.c similarity index 100% rename from src/cli.c rename to src/output/cli.c diff --git a/src/cli.h b/src/output/cli.h similarity index 100% rename from src/cli.h rename to src/output/cli.h diff --git a/src/csv.c b/src/output/csv.c similarity index 100% rename from src/csv.c rename to src/output/csv.c diff --git a/src/csv.h b/src/output/csv.h similarity index 100% rename from src/csv.h rename to src/output/csv.h diff --git a/src/html.c b/src/output/html.c similarity index 100% rename from src/html.c rename to src/output/html.c diff --git a/src/html.h b/src/output/html.h similarity index 100% rename from src/html.h rename to src/output/html.h