2015-04-10 13:40:02 +00:00
|
|
|
#!/bin/sh
|
2015-04-09 22:53:46 +00:00
|
|
|
#
|
|
|
|
# xlint.sh
|
|
|
|
|
2016-03-22 17:08:39 +00:00
|
|
|
[ "$XLINT" ] || exit 0
|
2015-07-14 08:47:06 +00:00
|
|
|
|
2019-07-15 17:32:45 +00:00
|
|
|
EXITCODE=0
|
2021-05-24 20:18:54 +00:00
|
|
|
read base tip < /tmp/revisions
|
2021-05-29 09:45:06 +00:00
|
|
|
|
|
|
|
common/scripts/lint-commits $base $tip || EXITCODE=$?
|
|
|
|
|
2019-07-15 17:32:45 +00:00
|
|
|
for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do
|
2019-03-06 01:47:54 +00:00
|
|
|
/bin/echo -e "\x1b[32mLinting $t...\x1b[0m"
|
2019-07-15 17:32:45 +00:00
|
|
|
xlint "$t" || EXITCODE=$?
|
2021-05-24 20:18:54 +00:00
|
|
|
common/scripts/lint-version-change "$t" $base $tip || EXITCODE=$?
|
2019-03-06 01:47:54 +00:00
|
|
|
done
|
2019-07-15 17:32:45 +00:00
|
|
|
exit $EXITCODE
|