Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit dde1eb4

Browse files
authored
Merge pull request #58 from ikeydoherty/cleanup
Cleanup
2 parents 081d70d + 1f22d3f commit dde1eb4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+889
-870
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ BreakBeforeTernaryOperators: true
2929
BreakConstructorInitializersBeforeComma: false
3030
#uncomment for clang 3.9
3131
#BreakStringLiterals: false
32-
ColumnLimit: 100
32+
ColumnLimit: 120
3333
CommentPragmas: '\*\<'
3434
ConstructorInitializerAllOnOneLineOrOnePerLine: false
3535
ConstructorInitializerIndentWidth: 4

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ before_install:
3939
script:
4040
- lcov --version | grep "1.10"
4141
- export CC="gcc-5"
42-
- ./configure --enable-coverage && make && make check && make distcheck && make check-valgrind
42+
- ./configure --enable-coverage && make && make check && make distcheck
4343
- clang-format-3.8 -i $(find . -name '*.[ch]') && git diff --exit-code
4444

4545

Makefile.am

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ include $(top_srcdir)/common.mk
22

33
ACLOCAL_AMFLAGS = -I m4
44

5+
if COVERAGE
6+
AM_CFLAGS += --coverage
7+
endif
8+
59
EXTRA_DIST = ${top_srcdir}/README.md \
610
${top_srcdir}/LICENSE \
711
${top_srcdir}/common.mk \
@@ -18,15 +22,20 @@ EXTRA_DIST = ${top_srcdir}/README.md \
1822
${top_srcdir}/tests/dummy_data/eopkg/files/security/cve-2013-4459.nopatch \
1923
${top_srcdir}/tests/dummy_data/pkgbuild/PKGBUILD \
2024
${top_srcdir}/tests/dummy_data/pkgbuild/cve-2014-5461.patch \
21-
${top_srcdir}/test-init.sh
25+
${top_srcdir}/test-init.sh \
26+
${top_srcdir}/data/packages.template
2227

2328
NULL =
2429
CLEANFILES =
2530

26-
SUBDIRS = \
27-
data \
28-
src \
29-
docs
31+
dist_man_MANS = \
32+
docs/cve-check-tool.1
33+
34+
# Install the template file to disk
35+
templatedir=$(datadir)/cve-check-tool/
36+
template_DATA = data/packages.template
37+
38+
include src/Makefile.am
3039

3140
if COVERAGE
3241
coverage:

configure.ac

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ fi
8383

8484
AM_CONDITIONAL([RELATIVE_PLUGINS], [test "$enable_relative_plugins" = "yes"])
8585

86-
AC_CONFIG_FILES([Makefile
87-
data/Makefile
88-
docs/Makefile
89-
src/Makefile
90-
src/plugins/Makefile])
86+
AC_CONFIG_FILES([Makefile])
9187

9288
AC_OUTPUT
9389

data/Makefile.am

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/Makefile.am

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/Makefile.am

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
include $(top_srcdir)/common.mk
2-
3-
if COVERAGE
4-
AM_CFLAGS += --coverage
5-
endif
6-
7-
SUBDIRS = . \
8-
plugins
9-
101
bin_PROGRAMS = \
112
cve-check-tool \
123
cve-check-update
@@ -15,23 +6,23 @@ noinst_LTLIBRARIES = \
156
libcve.la
167

178
libcve_la_SOURCES = \
18-
library/common.h \
19-
library/cve-check-tool.h \
20-
library/cve-string.h \
21-
library/cve-string.c \
22-
library/hashmap.h \
23-
library/hashmap.c \
24-
library/cve-db-lock.h \
25-
library/cve-db-lock.c \
26-
library/fetch.c \
27-
library/fetch.h \
28-
library/template.c \
29-
library/template.h \
30-
library/util.c \
31-
library/util.h \
32-
plugins/packaging/faux/faux.h \
33-
core.h \
34-
core.c
9+
src/library/common.h \
10+
src/library/cve-check-tool.h \
11+
src/library/cve-string.h \
12+
src/library/cve-string.c \
13+
src/library/hashmap.h \
14+
src/library/hashmap.c \
15+
src/library/cve-db-lock.h \
16+
src/library/cve-db-lock.c \
17+
src/library/fetch.c \
18+
src/library/fetch.h \
19+
src/library/template.c \
20+
src/library/template.h \
21+
src/library/util.c \
22+
src/library/util.h \
23+
src/plugins/packaging/faux/faux.h \
24+
src/core.h \
25+
src/core.c
3526

3627
libcve_la_CFLAGS = \
3728
$(CVE_CHECK_TOOL_CFLAGS) \
@@ -41,12 +32,12 @@ libcve_la_LIBADD = \
4132
$(CVE_CHECK_TOOL_LIBS)
4233

4334
cve_check_tool_SOURCES = \
44-
main.c \
45-
update.h \
46-
update.c \
47-
plugin-manager.c \
48-
plugin-manager.h \
49-
plugin.h
35+
src/main.c \
36+
src/update.h \
37+
src/update.c \
38+
src/plugin-manager.c \
39+
src/plugin-manager.h \
40+
src/plugin.h
5041

5142

5243
cve_check_tool_CFLAGS = \
@@ -60,9 +51,9 @@ cve_check_tool_LDADD = \
6051
-ldl
6152

6253
cve_check_update_SOURCES = \
63-
update.c \
64-
update.h \
65-
update-main.c
54+
src/update.c \
55+
src/update.h \
56+
src/update-main.c
6657

6758

6859
cve_check_update_CFLAGS = \
@@ -74,3 +65,5 @@ cve_check_update_LDADD = \
7465
$(CVE_CHECK_TOOL_LIBS) \
7566
libcve.la \
7667
-ldl
68+
69+
include src/plugins/Makefile.am

0 commit comments

Comments
 (0)