Branch: Tag:

2000-08-01

2000-08-01 16:49:56 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

runtime-compile timezones instead of loading them all

Rev: lib/modules/Calendar.pmod/Ruleset.pike:1.2
Rev: lib/modules/Calendar.pmod/Time.pmod:1.2
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.2
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.2
Rev: lib/modules/Calendar.pmod/module.pmod:1.2
Rev: lib/modules/Calendar.pmod/tzdata/africa:1.1
Rev: lib/modules/Calendar.pmod/tzdata/antarctica:1.1
Rev: lib/modules/Calendar.pmod/tzdata/asia:1.1
Rev: lib/modules/Calendar.pmod/tzdata/australasia:1.1
Rev: lib/modules/Calendar.pmod/tzdata/backward:1.1
Rev: lib/modules/Calendar.pmod/tzdata/etcetera:1.1
Rev: lib/modules/Calendar.pmod/tzdata/europe:1.1
Rev: lib/modules/Calendar.pmod/tzdata/factory:1.1
Rev: lib/modules/Calendar.pmod/tzdata/iso3166.tab:1.1
Rev: lib/modules/Calendar.pmod/tzdata/leapseconds:1.1
Rev: lib/modules/Calendar.pmod/tzdata/northamerica:1.1
Rev: lib/modules/Calendar.pmod/tzdata/pacificnew:1.1
Rev: lib/modules/Calendar.pmod/tzdata/solar87:1.1
Rev: lib/modules/Calendar.pmod/tzdata/solar88:1.1
Rev: lib/modules/Calendar.pmod/tzdata/solar89:1.1
Rev: lib/modules/Calendar.pmod/tzdata/southamerica:1.1
Rev: lib/modules/Calendar.pmod/tzdata/systemv:1.1
Rev: lib/modules/Calendar.pmod/tzdata/yearistype.sh:1.1
Rev: lib/modules/Calendar.pmod/tzdata/zone.tab:1.1

1: + #! /bin/sh    -  + : '@(#)yearistype.sh 7.4' +  + case $#-$2 in +  2-even) case $1 in +  *[24680]) exit 0 ;; +  *) exit 1 ;; +  esac ;; +  2-nonpres) case $1 in +  *[02468][048]|*[13579][26]) exit 1 ;; +  *) exit 0 ;; +  esac ;; +  2-odd) case $1 in +  *[13579]) exit 0 ;; +  *) exit 1 ;; +  esac ;; +  2-uspres) case $1 in +  *[02468][048]|*[13579][26]) exit 0 ;; +  *) exit 1 ;; +  esac ;; +  2-*) echo "$0: wild type - $2" >&2 +  exit 1 ;; +  *) echo "$0: usage is $0 year type" >&2 +  exit 1 ;; + esac   Newline at end of file added.