Module: check_mk
Branch: master
Commit: 671bdddf8d5691e6035b2ab0090ff2dfdac8a558
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=671bdddf8d5691…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 22 13:02:22 2019 +0100
run-cxx-linter: Fixed failures because of missing Makefiles
Change-Id: I6c58bc9c635dcb8198dcb1281fae7e535e42b100
---
scripts/run-cxx-linter | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/run-cxx-linter b/scripts/run-cxx-linter
index 4c76662..3a4cdfc 100755
--- a/scripts/run-cxx-linter
+++ b/scripts/run-cxx-linter
@@ -1,8 +1,13 @@
-#! /bin/sh
+#!/bin/bash
set -e
TARGET=$1
PATCHSET_REVISION=$2
+REPO_DIR="$(dirname $(cd "$( dirname "${BASH_SOURCE[0]}" )"
>/dev/null 2>&1 && pwd))"
+
+# Prevpare Makefiles, otherwise "make compile_commands.json" will fail
+make -C $REPO_DIR config.h
+
# To really compute *only* the files which need checking, we better make sure
# that our project is up-to-date without any further changes first (i.e. target
# "all-am"). Having an up-to-date project file before running a linter is a
good