svn commit: r459958 - head/Tools/scripts
Bryan Drewery
bdrewery at FreeBSD.org
Thu Jan 25 20:56:19 UTC 2018
Author: bdrewery
Date: Thu Jan 25 20:56:18 2018
New Revision: 459958
URL: https://svnweb.freebsd.org/changeset/ports/459958
Log:
Show errors for duplicate source entries.
Modified:
head/Tools/scripts/MOVEDlint.awk
Modified: head/Tools/scripts/MOVEDlint.awk
==============================================================================
--- head/Tools/scripts/MOVEDlint.awk Thu Jan 25 19:44:26 2018 (r459957)
+++ head/Tools/scripts/MOVEDlint.awk Thu Jan 25 20:56:18 2018 (r459958)
@@ -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
More information about the svn-ports-all
mailing list