From c0df57e1ce270466be342d9998f72633764b22dc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Sep 2003 19:51:38 +0000 Subject: Update. 2003-09-22 Ulrich Drepper * timezone/zdump.c: Update from tzcode2003c. * timezone/zic.c: Likewise. * timezone/leapseconds: Update from tzdata2003c. --- timezone/zdump.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'timezone/zdump.c') diff --git a/timezone/zdump.c b/timezone/zdump.c index cc27d758fb..9faeaf21b2 100644 --- a/timezone/zdump.c +++ b/timezone/zdump.c @@ -1,8 +1,4 @@ -#ifndef lint -#ifndef NOID -static char elsieid[] = "@(#)zdump.c 7.29"; -#endif /* !defined NOID */ -#endif /* !defined lint */ +static char elsieid[] = "@(#)zdump.c 7.31"; /* ** This code has been made independent of the rest of the time @@ -163,6 +159,11 @@ char * argv[]; (void) textdomain(TZ_DOMAIN); #endif /* HAVE_GETTEXT - 0 */ progname = argv[0]; + for (i = 1; i < argc; ++i) + if (strcmp(argv[i], "--version") == 0) { + (void) printf("%s\n", elsieid); + (void) exit(EXIT_SUCCESS); + } vflag = 0; cutoff = NULL; while ((c = getopt(argc, argv, "c:v")) == 'c' || c == 'v') @@ -172,7 +173,7 @@ char * argv[]; if ((c != EOF && c != -1) || (optind == argc - 1 && strcmp(argv[optind], "=") == 0)) { (void) fprintf(stderr, -_("%s: usage is %s [ -v ] [ -c cutoff ] zonename ...\n"), +_("%s: usage is %s [ --version ] [ -v ] [ -c cutoff ] zonename ...\n"), argv[0], argv[0]); (void) exit(EXIT_FAILURE); } -- cgit v1.2.3