utils/lint.sh: lint reuse compliance

Signed-off-by: Drew DeVault <sir@cmpwn.com>
This commit is contained in:
Drew DeVault 2024-03-25 18:06:29 +01:00
parent 52bb49ee48
commit bd60b41068
3 changed files with 34 additions and 1 deletions

View File

@ -9,6 +9,8 @@ packages:
- openssl-dev
- linux-headers
- procps
- moreutils
- reuse
sources:
- https://codeberg.org/redict/redict.git
tasks:

View File

@ -105,3 +105,24 @@ License: BSD-2-Clause
Files: deps/hdr_histogram/*
Copyright: 2014 Matt Warren
License: BSD-2-Clause
# From hiredict
Files: deps/hiredict/.gitignore deps/hiredict/.travis.yml deps/hiredict/appveyor.yml
Copyright: Salvatore Sanfilippo <antirez at gmail dot com>
License: BSD-3-Clause
Files: deps/hiredict/hiredict.pc.in deps/hiredict/hiredict.targets deps/hiredict/hiredict_ssl.pc.in
Copyright: Salvatore Sanfilippo <antirez at gmail dot com>
License: BSD-3-Clause
Files: deps/hiredict/shim/hiredis.pc.in deps/hiredict/shim/hiredis_ssl.pc.in
Copyright: Salvatore Sanfilippo <antirez at gmail dot com>
License: BSD-3-Clause
Files: deps/hiredict/hiredict-config.cmake.in deps/hiredict/hiredict_ssl-config.cmake.in
Copyright: Salvatore Sanfilippo <antirez at gmail dot com>
License: BSD-3-Clause
Files: deps/hiredict/hiredict.targets
Copyright: Salvatore Sanfilippo <antirez at gmail dot com>
License: BSD-3-Clause

View File

@ -1,4 +1,7 @@
#!/bin/sh -e
# SPDX-FileCopyrightText: 2024 Redict Contributors
# SPDX-License-Identifier: LGPL-3.0-only
signoff() {
if ! git log --format='%b' HEAD^.. | grep 'Signed-off-by' >/dev/null
then
@ -9,8 +12,15 @@ signoff() {
fi
}
licenses() {
if ! chronic sh -c "reuse lint 2>/dev/null"
then
return 1
fi
}
exitcode=0
for step in signoff
for step in signoff licenses
do
if ! $step
then