diff options
author | Robin Jarry <robin@jarry.cc> | 2023-12-05 20:46:55 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-12-14 23:05:07 +0100 |
commit | 73bf7241e611ea28e7a58584341921d1262afaa1 (patch) | |
tree | de7a87d1c8888d6e4309f5cf06f1a82f9e8ec051 /contrib/check-patches | |
parent | 2db657b6bdd6394109c8adc32098d3f39c43f03d (diff) | |
download | aerc-73bf7241e611ea28e7a58584341921d1262afaa1.tar.gz |
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 <johannes@thyssentishman.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Johannes Thyssen Tishman <johannes@thyssentishman.com>
Diffstat (limited to 'contrib/check-patches')
-rwxr-xr-x | contrib/check-patches | 5 |
1 files changed, 3 insertions, 2 deletions
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 |