mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-21 23:58:51 -05:00
Add utils/lint.sh
Signed-off-by: Drew DeVault <sir@cmpwn.com>
This commit is contained in:
parent
053be3dbf6
commit
0a2132f33d
@ -12,6 +12,9 @@ packages:
|
||||
sources:
|
||||
- https://codeberg.org/redict/redict.git
|
||||
tasks:
|
||||
- lint: |
|
||||
cd redict
|
||||
./utils/lint.sh
|
||||
- make: |
|
||||
cd redict
|
||||
make -C src V=1 USE_JEMALLOC=no MALLOC=libc BUILD_TLS=yes
|
||||
|
23
utils/lint.sh
Executable file
23
utils/lint.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh -e
|
||||
signoff() {
|
||||
if ! git log --format='%b' HEAD^.. | grep 'Signed-off-by' >/dev/null
|
||||
then
|
||||
echo "Missing sign-off" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
exitcode=0
|
||||
for step in signoff
|
||||
do
|
||||
if ! $step
|
||||
then
|
||||
exitcode=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ $exitcode -eq 0 ]
|
||||
then
|
||||
echo "Everything looks good!"
|
||||
fi
|
||||
exit $exitcode
|
Loading…
Reference in New Issue
Block a user