aboutsummaryrefslogtreecommitdiff
path: root/timezone/tzselect.ksh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-15 08:49:18 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-15 08:49:18 -0700
commit5fb55a68c1123398f1ed27c6fc8ee196dc121bc7 (patch)
treefe614ff75417623f25232d27176cbe64c0749ee7 /timezone/tzselect.ksh
parenta468a1d4a934bdfef77214acb46e6d3b397eb9c0 (diff)
downloadglibc-5fb55a68c1123398f1ed27c6fc8ee196dc121bc7.zip
glibc-5fb55a68c1123398f1ed27c6fc8ee196dc121bc7.tar.gz
glibc-5fb55a68c1123398f1ed27c6fc8ee196dc121bc7.tar.bz2
Update from tzcode2009i.
Diffstat (limited to 'timezone/tzselect.ksh')
-rw-r--r--timezone/tzselect.ksh17
1 files changed, 16 insertions, 1 deletions
diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh
index b99af82..57bf707 100644
--- a/timezone/tzselect.ksh
+++ b/timezone/tzselect.ksh
@@ -1,6 +1,6 @@
#! @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