~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/tools/gentz/gentz.cpp

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "uoptions.h"
37
37
#include "tzdat.h"
38
38
 
39
 
#ifdef XP_MAC_CONSOLE
40
 
# include <console.h>
41
 
#endif
42
 
 
43
39
#define INPUT_FILE "tz.txt"
44
40
#define OUTPUT_FILE "tz.dat"
45
41
 
147
143
 
148
144
int main(int argc, char *argv[]) {
149
145
    gentz x;
150
 
#ifdef XP_MAC_CONSOLE
151
 
        argc=ccommand((char***)&argv);
152
 
#endif
 
146
 
 
147
    U_MAIN_INIT_ARGS(argc, argv);
 
148
 
153
149
    return x.MMain(argc, argv);
154
150
}
155
151
 
192
188
        fprintf(stderr,
193
189
            "usage: %s [-options] timezone-file\n"
194
190
            "\tread the timezone file produced by tz.pl and create " TZ_DATA_NAME "." TZ_DATA_TYPE "\n"
195
 
            "\toptions:\n"
196
 
            "\t\t-h or -? or --help  this usage text\n"
197
 
            "\t\t-v or --verbose     turn on verbose output\n"
198
 
            "\t\t-c or --copyright   include a copyright notice\n"
199
 
            "\t\t-d or --destdir     destination directory, followed by the path\n",
 
191
            "options:\n"
 
192
            "\t-h or -? or --help  this usage text\n"
 
193
            "\t-v or --verbose     turn on verbose output\n"
 
194
            "\t-c or --copyright   include a copyright notice\n"
 
195
            "\t-d or --destdir     destination directory, followed by the path\n",
200
196
            argv[0]);
201
197
        return argc<0 ? U_ILLEGAL_ARGUMENT_ERROR : U_ZERO_ERROR;
202
198
    }