aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-07-02 16:19:50 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-07-02 16:19:50 +0000
commit5b4fcd067696284171f9157d923e71ce515bcddd (patch)
treeb93aab5cd6db0639963d941646fae30de3f512e9 /Tools
parent76a65ee47f874a10a76a714a9e3eb6a68ac8577e (diff)
downloadports-5b4fcd067696284171f9157d923e71ce515bcddd.tar.gz
ports-5b4fcd067696284171f9157d923e71ce515bcddd.zip
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
Notes
Notes: svn path=/head/; revision=473752
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/MOVEDlint.awk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/scripts/MOVEDlint.awk b/Tools/scripts/MOVEDlint.awk
index ebb4f4050f9c..b6d0e2b12213 100755
--- a/Tools/scripts/MOVEDlint.awk
+++ b/Tools/scripts/MOVEDlint.awk
@@ -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