This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.23-86-gf60ee13
- From: carlos at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 11 Mar 2016 04:23:30 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.23-86-gf60ee13
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via f60ee13f5d078b29e7ccdaae57bb4e9f14946eb4 (commit)
from b55b28e6574c215689e4656628b911788870de31 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f60ee13f5d078b29e7ccdaae57bb4e9f14946eb4
commit f60ee13f5d078b29e7ccdaae57bb4e9f14946eb4
Author: Carlos O'Donell <carlos@systemhalted.org>
Date: Thu Mar 10 23:17:09 2016 -0500
Removed unused timezone/checktab.awk.
diff --git a/ChangeLog b/ChangeLog
index 23487d7..1064bc8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-03-10 Carlos O'Donell <carlos@redhat.com>
+
+ * timezone/checktab.awk: Removed.
+
2016-03-10 Joseph Myers <joseph@codesourcery.com>
* manual/math.texi (Errors in Math Functions): Document relaxed
diff --git a/timezone/checktab.awk b/timezone/checktab.awk
deleted file mode 100644
index d78ba73..0000000
--- a/timezone/checktab.awk
+++ /dev/null
@@ -1,174 +0,0 @@
-# Check tz tables for consistency.
-
-# Contributed by Paul Eggert.
-
-BEGIN {
- FS = "\t"
-
- if (!iso_table) iso_table = "iso3166.tab"
- if (!zone_table) zone_table = "zone.tab"
- if (!want_warnings) want_warnings = -1
-
- # A special (and we hope temporary) case.
- tztab["America/Montreal"] = 1
-
- while (getline <iso_table) {
- iso_NR++
- if ($0 ~ /^#/) continue
- if (NF != 2) {
- printf "%s:%d: wrong number of columns\n", \
- iso_table, iso_NR >>"/dev/stderr"
- status = 1
- }
- cc = $1
- name = $2
- if (cc !~ /^[A-Z][A-Z]$/) {
- printf "%s:%d: invalid country code `%s'\n", \
- iso_table, iso_NR, cc >>"/dev/stderr"
- status = 1
- }
- if (cc <= cc0) {
- if (cc == cc0) {
- s = "duplicate";
- } else {
- s = "out of order";
- }
-
- printf "%s:%d: country code `%s' is %s\n", \
- iso_table, iso_NR, cc, s \
- >>"/dev/stderr"
- status = 1
- }
- cc0 = cc
- if (name2cc[name]) {
- printf "%s:%d: `%s' and `%s' have the sname name\n", \
- iso_table, iso_NR, name2cc[name], cc \
- >>"/dev/stderr"
- status = 1
- }
- name2cc[name] = cc
- cc2name[cc] = name
- cc2NR[cc] = iso_NR
- }
-
- zone_table = "zone.tab"
- cc0 = ""
-
- while (getline <zone_table) {
- zone_NR++
- if ($0 ~ /^#/) continue
- if (NF != 3 && NF != 4) {
- printf "%s:%d: wrong number of columns\n", \
- zone_table, zone_NR >>"/dev/stderr"
- status = 1
- }
- cc = $1
- coordinates = $2
- tz = $3
- comments = $4
- if (cc < cc0) {
- printf "%s:%d: country code `%s' is out of order\n", \
- zone_table, zone_NR, cc >>"/dev/stderr"
- status = 1
- }
- cc0 = cc
- cctz = cc tz
- cctztab[cctz] = 1
- tztab[tz] = 1
- tz2comments[cctz] = comments
- tz2NR[tz] = zone_NR
- if (cc2name[cc]) {
- cc_used[cc]++
- } else {
- printf "%s:%d: %s: unknown country code\n", \
- zone_table, zone_NR, cc >>"/dev/stderr"
- status = 1
- }
- if (coordinates !~ /^[-+][0-9][0-9][0-5][0-9][-+][01][0-9][0-9][0-5][0-9]$/ \
- && coordinates !~ /^[-+][0-9][0-9][0-5][0-9][0-5][0-9][-+][01][0-9][0-9][0-5][0-9][0-5][0-9]$/) {
- printf "%s:%d: %s: invalid coordinates\n", \
- zone_table, zone_NR, coordinates >>"/dev/stderr"
- status = 1
- }
- }
-
- for (cctz in cctztab) {
- cc = substr (cctz, 1, 2)
- tz = substr (cctz, 3)
- if (cc_used[cc] == 1) {
- if (tz2comments[cctz]) {
- printf "%s:%d: unnecessary comment `%s'\n", \
- zone_table, tz2NR[tz], \
- tz2comments[cctz] \
- >>"/dev/stderr"
- status = 1
- }
- } else {
- if (!tz2comments[cctz]) {
- printf "%s:%d: missing comment\n", \
- zone_table, tz2NR[tz] >>"/dev/stderr"
- status = 1
- }
- }
- }
-
- FS = " "
-}
-
-$1 ~ /^#/ { next }
-
-{
- tz = rules = ""
- if ($1 == "Zone") {
- tz = $2
- ruleUsed[$4] = 1
- } else if ($1 == "Link") {
- # Ignore Link commands if source and destination basenames
- # are identical, e.g. Europe/Istanbul versus Asia/Istanbul.
- src = $2
- dst = $3
- while ((i = index(src, "/"))) src = substr(src, i+1)
- while ((i = index(dst, "/"))) dst = substr(dst, i+1)
- if (src != dst) tz = $3
- } else if ($1 == "Rule") {
- ruleDefined[$2] = 1
- } else {
- ruleUsed[$2] = 1
- }
- if (tz && tz ~ /\//) {
- if (!tztab[tz]) {
- printf "%s: no data for `%s'\n", zone_table, tz \
- >>"/dev/stderr"
- status = 1
- }
- zoneSeen[tz] = 1
- }
-}
-
-END {
- for (tz in ruleDefined) {
- if (!ruleUsed[tz]) {
- printf "%s: Rule never used\n", tz
- status = 1
- }
- }
- for (tz in tz2cc) {
- if (!zoneSeen[tz]) {
- printf "%s:%d: no Zone table for `%s'\n", \
- zone_table, tz2NR[tz], tz >>"/dev/stderr"
- status = 1
- }
- }
-
- if (0 < want_warnings) {
- for (cc in cc2name) {
- if (!cc_used[cc]) {
- printf "%s:%d: warning: " \
- "no Zone entries for %s (%s)\n", \
- iso_table, cc2NR[cc], cc, cc2name[cc]
- }
- }
- }
-
- exit status
-}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 +
timezone/checktab.awk | 174 -------------------------------------------------
2 files changed, 4 insertions(+), 174 deletions(-)
delete mode 100644 timezone/checktab.awk
hooks/post-receive
--
GNU C Library master sources