void-packages/common/travis/xlint.sh

13 lines
225 B
Bash
Raw Normal View History

#!/bin/sh
#
# xlint.sh
[ "$XLINT" ] || exit 0
2015-07-14 10:47:06 +02:00
EXITCODE=0
for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do
/bin/echo -e "\x1b[32mLinting $t...\x1b[0m"
xlint "$t" || EXITCODE=$?
done
exit $EXITCODE