~mnordhoff/pytz/py2.5-only-testing

« back to all changes in this revision

Viewing changes to elsie.nci.nih.gov/src/tzselect.ksh

  • Committer: Matt Nordhoff
  • Date: 2009-02-15 06:20:32 UTC
  • mfrom: (158.3.2 devel)
  • Revision ID: mnordhoff@mattnordhoff.com-20090215062032-mbk4idg4ntj0vb0x
Merge devel

Not that there's any reason to... It just makes this branch's history less readable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/ksh
2
2
 
3
 
# '@(#)tzselect.ksh     8.1'
 
3
VERSION='@(#)tzselect.ksh       8.2'
4
4
 
5
5
# Ask the user about the time zone, and output the resulting TZ value to stdout.
6
6
# Interact with the user via stderr and stdin.
45
45
        exit 1
46
46
}
47
47
 
 
48
if [ "$1" = "--help" ]; then
 
49
    cat <<EOF
 
50
Usage: tzselect
 
51
Select a time zone interactively.
 
52
 
 
53
Report bugs to tz@elsie.nci.nih.gov.
 
54
EOF
 
55
    exit 0
 
56
elif [ "$1" = "--version" ]; then
 
57
    cat <<EOF
 
58
tzselect $VERSION
 
59
EOF
 
60
    exit 0
 
61
fi
 
62
 
48
63
# Make sure the tables are readable.
49
64
TZ_COUNTRY_TABLE=$TZDIR/iso3166.tab
50
65
TZ_ZONE_TABLE=$TZDIR/zone.tab