From a6de5b9b18c5eee4d81efd1c4ef37ba38c8a792d Mon Sep 17 00:00:00 2001 From: martin-s Date: Sat, 9 Jul 2011 21:29:11 +0000 Subject: [PATCH] Add:maptool:Possibility to set fixed zip file timestamp git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4611 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/maptool/maptool.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/navit/navit/maptool/maptool.c b/navit/navit/maptool/maptool.c index 771b80d..0fdeb0f 100644 --- a/navit/navit/maptool/maptool.c +++ b/navit/navit/maptool/maptool.c @@ -133,6 +133,7 @@ usage(FILE *f) fprintf(f,"-r (--rule-file) : read mapping rules from specified file\n"); fprintf(f,"-s (--start) : start at specified phase\n"); fprintf(f,"-S (--slice-size) : defines the amount of memory to use, in bytes. Default is 1GB\n"); + fprintf(f,"-t (--timestamp) y-m-dTh:m:s : Set zip timestamp\n"); fprintf(f,"-w (--dedupe-ways) : ensure no duplicate ways or nodes. useful when using several input files\n"); fprintf(f,"-W (--ways-only) : process only ways\n"); fprintf(f,"-U (--unknown-country) : add objects with unknown country to index\n"); @@ -204,6 +205,7 @@ parse_option(struct maptool_params *p, char **argv, int argc, int *option_index) {"plugin", 1, 0, 'p'}, {"protobuf", 0, 0, 'P'}, {"start", 1, 0, 's'}, + {"timestamp", 1, 0, 't'}, {"input-file", 1, 0, 'i'}, {"rule-file", 1, 0, 'r'}, {"ignore-unknown", 0, 0, 'n'}, @@ -217,7 +219,7 @@ parse_option(struct maptool_params *p, char **argv, int argc, int *option_index) #ifdef HAVE_POSTGRESQL "d:" #endif - "e:hi:knm:p:r:s:wu:z:U", long_options, option_index); + "e:hi:knm:p:r:s:t:wu:z:U", long_options, option_index); if (c == -1) return 1; switch (c) { @@ -316,6 +318,9 @@ parse_option(struct maptool_params *p, char **argv, int argc, int *option_index) case 's': p->start=atoi(optarg); break; + case 't': + p->timestamp=optarg; + break; case 'w': dedupe_ways_hash=g_hash_table_new(NULL, NULL); break; -- 2.7.4