Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
#uncomment for clang 3.9
#BreakStringLiterals: false
ColumnLimit: 100
ColumnLimit: 120
CommentPragmas: '\*\<'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ before_install:
script:
- lcov --version | grep "1.10"
- export CC="gcc-5"
- ./configure --enable-coverage && make && make check && make distcheck && make check-valgrind
- ./configure --enable-coverage && make && make check && make distcheck
- clang-format-3.8 -i $(find . -name '*.[ch]') && git diff --exit-code


Expand Down
19 changes: 14 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ include $(top_srcdir)/common.mk

ACLOCAL_AMFLAGS = -I m4

if COVERAGE
AM_CFLAGS += --coverage
endif

EXTRA_DIST = ${top_srcdir}/README.md \
${top_srcdir}/LICENSE \
${top_srcdir}/common.mk \
Expand All @@ -18,15 +22,20 @@ EXTRA_DIST = ${top_srcdir}/README.md \
${top_srcdir}/tests/dummy_data/eopkg/files/security/cve-2013-4459.nopatch \
${top_srcdir}/tests/dummy_data/pkgbuild/PKGBUILD \
${top_srcdir}/tests/dummy_data/pkgbuild/cve-2014-5461.patch \
${top_srcdir}/test-init.sh
${top_srcdir}/test-init.sh \
${top_srcdir}/data/packages.template

NULL =
CLEANFILES =

SUBDIRS = \
data \
src \
docs
dist_man_MANS = \
docs/cve-check-tool.1

# Install the template file to disk
templatedir=$(datadir)/cve-check-tool/
template_DATA = data/packages.template

include src/Makefile.am

if COVERAGE
coverage:
Expand Down
6 changes: 1 addition & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ fi

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

AC_CONFIG_FILES([Makefile
data/Makefile
docs/Makefile
src/Makefile
src/plugins/Makefile])
AC_CONFIG_FILES([Makefile])

AC_OUTPUT

Expand Down
9 changes: 0 additions & 9 deletions data/Makefile.am

This file was deleted.

5 changes: 0 additions & 5 deletions docs/Makefile.am

This file was deleted.

63 changes: 28 additions & 35 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
include $(top_srcdir)/common.mk

if COVERAGE
AM_CFLAGS += --coverage
endif

SUBDIRS = . \
plugins

bin_PROGRAMS = \
cve-check-tool \
cve-check-update
Expand All @@ -15,23 +6,23 @@ noinst_LTLIBRARIES = \
libcve.la

libcve_la_SOURCES = \
library/common.h \
library/cve-check-tool.h \
library/cve-string.h \
library/cve-string.c \
library/hashmap.h \
library/hashmap.c \
library/cve-db-lock.h \
library/cve-db-lock.c \
library/fetch.c \
library/fetch.h \
library/template.c \
library/template.h \
library/util.c \
library/util.h \
plugins/packaging/faux/faux.h \
core.h \
core.c
src/library/common.h \
src/library/cve-check-tool.h \
src/library/cve-string.h \
src/library/cve-string.c \
src/library/hashmap.h \
src/library/hashmap.c \
src/library/cve-db-lock.h \
src/library/cve-db-lock.c \
src/library/fetch.c \
src/library/fetch.h \
src/library/template.c \
src/library/template.h \
src/library/util.c \
src/library/util.h \
src/plugins/packaging/faux/faux.h \
src/core.h \
src/core.c

libcve_la_CFLAGS = \
$(CVE_CHECK_TOOL_CFLAGS) \
Expand All @@ -41,12 +32,12 @@ libcve_la_LIBADD = \
$(CVE_CHECK_TOOL_LIBS)

cve_check_tool_SOURCES = \
main.c \
update.h \
update.c \
plugin-manager.c \
plugin-manager.h \
plugin.h
src/main.c \
src/update.h \
src/update.c \
src/plugin-manager.c \
src/plugin-manager.h \
src/plugin.h


cve_check_tool_CFLAGS = \
Expand All @@ -60,9 +51,9 @@ cve_check_tool_LDADD = \
-ldl

cve_check_update_SOURCES = \
update.c \
update.h \
update-main.c
src/update.c \
src/update.h \
src/update-main.c


cve_check_update_CFLAGS = \
Expand All @@ -74,3 +65,5 @@ cve_check_update_LDADD = \
$(CVE_CHECK_TOOL_LIBS) \
libcve.la \
-ldl

include src/plugins/Makefile.am
Loading