1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 19:29:06 +00:00

Move links to 'backward' if they exist only because of country codes.

* backward: Move links here from other files, if the only reason
they existed was to fill out zone.tab.  Zones are now allowed to
cross national borders, so a zone now need not exist merely
because there's a national border.  Sort the list consistently.
None of this changes any time stamp in the database.
* checktab.awk: Don't require that zone.tab's column 3 be unique.
* europe (Europe/Jersey, Europe/Guernsey, Europe/Isle_of_Man)
(Europe/Mariehamn, Europe/Busingen, Europe/Vatican, Europe/San_Marino)
(Arctic/Longyearbyen, Europe/Ljubljana, Europe/Podgorica)
(Europe/Sarajevo, Europe/Skopje, Europe/Zagreb, Europe/Bratislava):
* northamerica (America/St_Barthelemy, America/Marigot):
* southamerica (America/Lower_Princes, America/Kralendijk):
Move links to 'backward'.
* zone.tab: Give more details about how different rows can have
duplicate column 1 or column 3.  For each link moved to 'backward',
change column 3 to be the non-backward name.
This commit is contained in:
Paul Eggert
2013-08-09 02:05:40 -07:00
parent b90b803c05
commit df99923bde
6 changed files with 111 additions and 100 deletions

View File

@@ -69,13 +69,10 @@ BEGIN {
status = 1
}
cc0 = cc
if (tz2cc[tz]) {
printf "%s:%d: %s: duplicate TZ column\n", \
zone_table, zone_NR, tz >>"/dev/stderr"
status = 1
}
tz2cc[tz] = cc
tz2comments[tz] = comments
cctz = cc tz
cctztab[cctz] = 1
tztab[tz] = 1
tz2comments[cctz] = comments
tz2NR[tz] = zone_NR
if (cc2name[cc]) {
cc_used[cc]++
@@ -92,16 +89,19 @@ BEGIN {
}
}
for (tz in tz2cc) {
if (cc_used[tz2cc[tz]] == 1) {
if (tz2comments[tz]) {
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[tz] \
zone_table, tz2NR[tz], \
tz2comments[cctz] \
>>"/dev/stderr"
status = 1
}
} else {
if (!tz2comments[tz]) {
if (!tz2comments[cctz]) {
printf "%s:%d: missing comment\n", \
zone_table, tz2NR[tz] >>"/dev/stderr"
status = 1
@@ -125,7 +125,7 @@ BEGIN {
if (src != dst) tz = $3
}
if (tz && tz ~ /\//) {
if (!tz2cc[tz]) {
if (!tztab[tz]) {
printf "%s: no data for `%s'\n", zone_table, tz \
>>"/dev/stderr"
status = 1