Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146104650
D36304.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
693 B
Referenced Files
None
Subscribers
None
D36304.diff
View Options
diff --git a/Tools/scripts/MOVEDlint.awk b/Tools/scripts/MOVEDlint.awk
--- a/Tools/scripts/MOVEDlint.awk
+++ b/Tools/scripts/MOVEDlint.awk
@@ -44,13 +44,26 @@
}
}
sort = "/usr/bin/sort -n"
- lastdate="1999-12-31"
+ if (!lastdate) {
+ lastdate="1999-12-31"
+ } else if (lastdate !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/) {
+ printf "Invalid date format '%s' expecting YYYY-MM-DD\n", lastdate
+ exit(1)
+ }
}
/^(#|$)/ {
next
}
+!started && $3 < lastdate {
+ next
+}
+
+!started && $3 >= lastdate {
+ started = 1
+}
+
NF != 4 {
printf "%5d: format is from|to|date|reason, detected %d field(s) \n", NR, NF | sort
error[NR] = 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 28, 8:49 PM (4 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29081989
Default Alt Text
D36304.diff (693 B)
Attached To
Mode
D36304: MOVEDlint.awk: add the ability to select a start date
Attached
Detach File
Event Timeline
Log In to Comment