File: checklinks.awk

package info (click to toggle)
tzdata 2015c-1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 3,972 kB
  • sloc: sh: 471; makefile: 455; awk: 238; perl: 34
file content (19 lines) | stat: -rw-r--r-- 265 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Check links in tz tables.

# Contributed by Paul Eggert.

/^Link/ { used[$2] = 1 }
/^Zone/ { defined[$2] = 1 }

END {
    status = 0

    for (tz in used) {
	if (!defined[tz]) {
	    printf "%s: Link to non-zone\n", tz
	    status = 1
	}
    }

    exit status
}