mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-23 00:22:11 +00:00
--help and --version work
SCCS-file: tzselect.ksh SCCS-SID: 8.2
This commit is contained in:
committed by
Paul Eggert
parent
b5f59735d4
commit
a2563cea80
17
tzselect.ksh
17
tzselect.ksh
@ -1,6 +1,6 @@
|
||||
#! /bin/ksh
|
||||
|
||||
# '%W%'
|
||||
VERSION='%W%'
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user