Skip to content
Snippets Groups Projects
Commit 03699b0f authored by Jakob Olsson's avatar Jakob Olsson
Browse files

add install-hooks target utilizing checkpatch

parent 81db3f02
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
exec git diff --cached | scripts/checkpatch.pl --no-tree --no-signoff --ignore CONST_STRUCT,SPDX_LICENSE_TAG,LINE_CONTINUATIONS
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -31,7 +31,7 @@ LIBS += -lmaputils ...@@ -31,7 +31,7 @@ LIBS += -lmaputils
plugin_subdirs ?= $(wildcard plugins/*) plugin_subdirs ?= $(wildcard plugins/*)
plugin_sofile = $(wildcard $(d)/*.so) plugin_sofile = $(wildcard $(d)/*.so)
plugin_files = $(foreach d, $(plugin_subdirs), $(plugin_sofile)) plugin_files = $(foreach d, $(plugin_subdirs), $(plugin_sofile))
HOOKS = pre-commit
.PHONY: all check clean plugins FORCE .PHONY: all check clean plugins FORCE
...@@ -48,6 +48,8 @@ plugins: ...@@ -48,6 +48,8 @@ plugins:
@echo "$(plugin_subdirs)" @echo "$(plugin_subdirs)"
for i in $(plugin_subdirs); do [ -d $$i ] && $(MAKE) -C $$i all; done for i in $(plugin_subdirs); do [ -d $$i ] && $(MAKE) -C $$i all; done
install-hooks:
$(foreach hook, $(HOOKS), ln -s -f ../../hooks/$(hook) ../.git/hooks/$(hook);)
check: FORCE check: FORCE
@cppcheck --quiet --enable=all --inconclusive --std=c99 \ @cppcheck --quiet --enable=all --inconclusive --std=c99 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment