void-packages/common/travis/xlint.sh

18 lines
379 B
Bash
Raw Normal View History

#!/bin/sh
#
# xlint.sh
[ "$XLINT" ] || exit 0
2015-07-14 08:47:06 +00:00
EXITCODE=0
2021-05-24 20:18:54 +00: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" || EXITCODE=$?
2021-05-24 20:18:54 +00:00
common/scripts/lint-version-change "$t" $base $tip || EXITCODE=$?
done
exit $EXITCODE