summaryrefslogtreecommitdiff
path: root/elsie.nci.nih.gov/src/tzselect.ksh
diff options
context:
space:
mode:
authorMatt Nordhoff <mnordhoff@mattnordhoff.com>2009-01-22 00:36:43 +0000
committerMatt Nordhoff <mnordhoff@mattnordhoff.com>2009-01-22 00:36:43 +0000
commit7695571e6442b7f6576aae700a0533668b95a17c (patch)
tree8ac863335e08f6a6558bf4cf6f8a35592168bd67 /elsie.nci.nih.gov/src/tzselect.ksh
parent050d33f0ba56ce5e0c1aab7d0220772f19f10f88 (diff)
downloadpytz-7695571e6442b7f6576aae700a0533668b95a17c.tar.gz
Update to tz 2009a
Diffstat (limited to 'elsie.nci.nih.gov/src/tzselect.ksh')
-rw-r--r--elsie.nci.nih.gov/src/tzselect.ksh17
1 files changed, 16 insertions, 1 deletions
diff --git a/elsie.nci.nih.gov/src/tzselect.ksh b/elsie.nci.nih.gov/src/tzselect.ksh
index 26dfa98..7b80533 100644
--- a/elsie.nci.nih.gov/src/tzselect.ksh
+++ b/elsie.nci.nih.gov/src/tzselect.ksh
@@ -1,6 +1,6 @@
#! /bin/ksh
-# '@(#)tzselect.ksh 8.1'
+VERSION='@(#)tzselect.ksh 8.2'
# Ask the user about the time zone, and output the resulting TZ value to stdout.
# Interact with the user via stderr and stdin.
@@ -45,6 +45,21 @@
exit 1
}
+if [ "$1" = "--help" ]; then
+ cat <<EOF
+Usage: tzselect
+Select a time zone interactively.
+
+Report bugs to tz@elsie.nci.nih.gov.
+EOF
+ exit 0
+elif [ "$1" = "--version" ]; then
+ cat <<EOF
+tzselect $VERSION
+EOF
+ exit 0
+fi
+
# Make sure the tables are readable.
TZ_COUNTRY_TABLE=$TZDIR/iso3166.tab
TZ_ZONE_TABLE=$TZDIR/zone.tab