Show errors for duplicate source entries.

This commit is contained in:
Bryan Drewery
2018-01-25 20:56:18 +00:00
parent da465b1377
commit d7b83ead05
+7
View File
@@ -74,6 +74,13 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
}
{
if ($1 in srcs) {
printf "%5d: %s has duplicate entries\n", NR, $1 | sort
error[NR] = 1
next
}
srcs[$1] = 1
if (lastdate > $3) {
printf "%5d: date going backwards from %s to %s\n", NR, lastdate, $3 | sort
error[NR] = 1