void-packages/common/travis/xlint.sh

19 lines
486 B
Bash
Raw Normal View History

#!/bin/sh
#
# xlint.sh
2023-01-30 15:34:51 +01:00
[ "$XLINT" ] || exit 0
2015-07-14 10:47:06 +02:00
EXITCODE=0
2021-05-24 22:18:54 +02:00
read base tip < /tmp/revisions
common/scripts/lint-commits $base $tip || EXITCODE=$?
for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do
/bin/echo -e "\x1b[32mLinting $t...\x1b[0m"
xlint "$t" > /tmp/xlint_out || EXITCODE=$?
common/scripts/lint-version-change "$t" $base $tip > /tmp/vlint_out || EXITCODE=$?
awk -f common/scripts/lint2annotations.awk /tmp/xlint_out /tmp/vlint_out
done
exit $EXITCODE