From 73bf7241e611ea28e7a58584341921d1262afaa1 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 5 Dec 2023 20:46:55 +0100 Subject: lint,validate: fix for openbsd - Remove GNU specific stuff (ln -v, mktemp --tempdir, grep --color) - Remove GCC specific flags in sendemail-validate (-Warith-conversion) - Add -std=c99 and -Wpedantic and fix the reported warnings. - Explicitly call gmake everywhere. - Run our custom analyzer standalone. Golangci lint plugins are not supported on OpenBSD. Indirect dependency to golang.org/x/mod is required somehow... Reported-by: Johannes Thyssen Tishman Signed-off-by: Robin Jarry Tested-by: Johannes Thyssen Tishman --- contrib/check-patches | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/check-patches') diff --git a/contrib/check-patches b/contrib/check-patches index e0d82896..0fb2aa89 100755 --- a/contrib/check-patches +++ b/contrib/check-patches @@ -5,13 +5,14 @@ set -e revision_range="${1?revision range}" valid=0 -total=$(git rev-list --reverse "$revision_range" | wc -l) +revisions=$(git rev-list --reverse "$revision_range") +total=$(echo $revisions | wc -w) if [ "$total" -eq 0 ]; then exit 0 fi n=0 -for rev in $(git rev-list --reverse "$revision_range"); do +for rev in $revisions; do n=$((n + 1)) title=$(git log --format='%s' -1 "$rev") fail=false -- cgit