From 05b664562ae9b65690b6c21e1d60104bdb2cdf82 Mon Sep 17 00:00:00 2001 From: wollman Date: Tue, 13 Sep 1994 21:50:20 +0000 Subject: Latest version of the timezone data files from Arthur David Olson, to go with the code imported yesterday. Obtained from: Arthur David Olson, ftp://elsie.nci.nih.gov/pub/tzdata94f.tar.gz --- share/zoneinfo/yearistype.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 share/zoneinfo/yearistype.sh (limited to 'share/zoneinfo/yearistype.sh') diff --git a/share/zoneinfo/yearistype.sh b/share/zoneinfo/yearistype.sh new file mode 100755 index 0000000..42ef29b --- /dev/null +++ b/share/zoneinfo/yearistype.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +: '@(#)yearistype.sh 7.2' + +case $#-$2 in + 2-odd) case $1 in + *[13579]) exit 0 ;; + *) exit 1 ;; + esac ;; + 2-even) case $1 in + *[24680]) 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 -- cgit v1.1