Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2018 16:19:50 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473752 - head/Tools/scripts
Message-ID:  <201807021619.w62GJo27010976@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Mon Jul  2 16:19:50 2018
New Revision: 473752
URL: https://svnweb.freebsd.org/changeset/ports/473752

Log:
  Also report the previous line when going backwards in time.
  
  This is because half of the time, the previous line is the one that is
  wrong, so you get redirected to line X, where X-1 has the error, and you
  wonder because line X looks just fine.
  
  Sponsored by:	Absolight

Modified:
  head/Tools/scripts/MOVEDlint.awk

Modified: head/Tools/scripts/MOVEDlint.awk
==============================================================================
--- head/Tools/scripts/MOVEDlint.awk	Mon Jul  2 16:12:56 2018	(r473751)
+++ head/Tools/scripts/MOVEDlint.awk	Mon Jul  2 16:19:50 2018	(r473752)
@@ -82,7 +82,9 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
     srcs[$1] = 1
 
     if (lastdate > $3) {
-        printf "%5d: date going backwards from %s to %s\n", NR, lastdate, $3 | sort
+        printf "%5d: date going backwards from %s to %s from this line\n", NR-1, lastdate, $3 | sort
+        error[NR-1] = 1
+        printf "%5d: date going backwards from %s to %s to this line\n", NR, lastdate, $3 | sort
         error[NR] = 1
     }
     lastdate = $3



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807021619.w62GJo27010976>