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