summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-07-09 21:29:11 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-07-09 21:29:11 +0000
commitc3ff1c0aa2d89b517749f4d67bf77f25b9478bfc (patch)
tree6e4da92a5bbba7e6212e834e6e92fda1b75ae2c0
parent7bbb9d122440b47b4fd315ad77c7ac30f76a244c (diff)
downloadnavit-c3ff1c0aa2d89b517749f4d67bf77f25b9478bfc.tar.gz
Add:maptool:Possibility to set fixed zip file timestamp
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4611 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/maptool/maptool.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/navit/maptool/maptool.c b/navit/maptool/maptool.c
index 771b80da3..0fdeb0fbc 100644
--- a/navit/maptool/maptool.c
+++ b/navit/maptool/maptool.c
@@ -133,6 +133,7 @@ usage(FILE *f)
fprintf(f,"-r (--rule-file) <file> : read mapping rules from specified file\n");
fprintf(f,"-s (--start) <phase> : start at specified phase\n");
fprintf(f,"-S (--slice-size) <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;