[BACK]Return to checktab.awk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / time

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/time/checktab.awk between version 1.2 and 1.3

version 1.2, 1998/01/09 04:11:57 version 1.3, 1999/11/10 20:32:31
Line 2 
Line 2 
   
 # Check tz tables for consistency.  # Check tz tables for consistency.
   
   # @(#)checktab.awk      1.6
   
 # Contributed by Paul Eggert <eggert@twinsun.com>.  # Contributed by Paul Eggert <eggert@twinsun.com>.
   
 BEGIN {  BEGIN {
Line 15  BEGIN {
Line 17  BEGIN {
                 iso_NR++                  iso_NR++
                 if ($0 ~ /^#/) continue                  if ($0 ~ /^#/) continue
                 if (NF != 2) {                  if (NF != 2) {
                         printf "%s:%d: wrong number of columns\n",                          printf "%s:%d: wrong number of columns\n", \
                                 iso_table, iso_NR >>"/dev/stderr"                                  iso_table, iso_NR >>"/dev/stderr"
                         status = 1                          status = 1
                 }                  }
Line 27  BEGIN {
Line 29  BEGIN {
                         status = 1                          status = 1
                 }                  }
                 if (cc <= cc0) {                  if (cc <= cc0) {
                           if (cc == cc0) {
                                   s = "duplicate";
                           } else {
                                   s = "out of order";
                           }
   
                         printf "%s:%d: country code `%s' is %s\n", \                          printf "%s:%d: country code `%s' is %s\n", \
                                 iso_table, iso_NR, cc, \                                  iso_table, iso_NR, cc, s \
                                 cc==cc0 ? "duplicate"  : "out of order" \  
                                 >>"/dev/stderr"                                  >>"/dev/stderr"
                         status = 1                          status = 1
                 }                  }
Line 52  BEGIN {
Line 59  BEGIN {
                 zone_NR++                  zone_NR++
                 if ($0 ~ /^#/) continue                  if ($0 ~ /^#/) continue
                 if (NF != 3 && NF != 4) {                  if (NF != 3 && NF != 4) {
                         printf "%s:%d: wrong number of columns\n",                          printf "%s:%d: wrong number of columns\n", \
                                 zone_table, zone_NR >>"/dev/stderr"                                  zone_table, zone_NR >>"/dev/stderr"
                         status = 1                          status = 1
                 }                  }
Line 143  END {
Line 150  END {
         if (0 < want_warnings) {          if (0 < want_warnings) {
                 for (cc in cc2name) {                  for (cc in cc2name) {
                         if (!cc_used[cc]) {                          if (!cc_used[cc]) {
                                 printf "%s:%d: warning:" \                                  printf "%s:%d: warning: " \
                                         "no Zone entries for %s (%s)\n",                                          "no Zone entries for %s (%s)\n", \
                                         iso_table, cc2NR[cc], cc, cc2name[cc]                                          iso_table, cc2NR[cc], cc, cc2name[cc]
                         }                          }
                 }                  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>