summaryrefslogtreecommitdiffstats
path: root/share/zoneinfo/yearistype.sh
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-13 21:50:20 +0000
committerwollman <wollman@FreeBSD.org>1994-09-13 21:50:20 +0000
commit05b664562ae9b65690b6c21e1d60104bdb2cdf82 (patch)
tree65e608393e61618d9d7820d72792b779f0cf0a90 /share/zoneinfo/yearistype.sh
parent025c9c2b3502252e1614b7fabecfea87503b891f (diff)
downloadFreeBSD-src-05b664562ae9b65690b6c21e1d60104bdb2cdf82.zip
FreeBSD-src-05b664562ae9b65690b6c21e1d60104bdb2cdf82.tar.gz
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
Diffstat (limited to 'share/zoneinfo/yearistype.sh')
-rwxr-xr-xshare/zoneinfo/yearistype.sh18
1 files changed, 18 insertions, 0 deletions
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
OpenPOWER on IntegriCloud