summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-12-17 10:02:57 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-12-17 10:02:57 -0800
commit951395058c6d9e069ccbf767669bddc60bcbe0c8 (patch)
tree38e68de6ab9a63f1bc663decf7ce6d8198a3eded
parent5486ec685abf8116aef8d4a03fafd80c8407257b (diff)
downloadtz-951395058c6d9e069ccbf767669bddc60bcbe0c8.tar.gz
* leapseconds.awk, NEWS: Also output expiration date comment.
Problem reported by Martin Burnicki in: http://www.ietf.org/mail-archive/web/tzdist/current/msg01132.html
-rw-r--r--NEWS3
-rw-r--r--leapseconds.awk9
2 files changed, 12 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b86822e..674d353 100644
--- a/NEWS
+++ b/NEWS
@@ -33,6 +33,9 @@ Unreleased, experimental changes
Changes affecting commentary
+ The leapseconds file commentary now mentions the expiration date.
+ (Problem reported by Martin Burnicki.)
+
Update Mexican Library of Congress URL.
diff --git a/leapseconds.awk b/leapseconds.awk
index bb81e96..756391e 100644
--- a/leapseconds.awk
+++ b/leapseconds.awk
@@ -37,6 +37,11 @@ BEGIN {
}
/^ *$/ { next }
+
+/^#\tUpdated through/ || /^#\tFile expires on:/ {
+ last_lines = last_lines $0 "\n"
+}
+
/^#/ { next }
{
@@ -64,3 +69,7 @@ BEGIN {
}
old_TAI_minus_UTC = TAI_minus_UTC
}
+
+END {
+ printf "\n%s", last_lines
+}