mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-12-23 12:41:05 +01:00
16 lines
462 B
Bash
Executable file
16 lines
462 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# xlint.sh
|
|
|
|
EXITCODE=0
|
|
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
|