diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-02 15:46:16 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-02 15:46:16 +0000 |
commit | 2fb7cce312659b2674f8369d20d309d1bb10ae68 (patch) | |
tree | a416a002637b8ffd83648a57a269fb36e78a96be /navit/script | |
parent | a0932d4bc9d059e1bfe373efbabbcce0addbbd6e (diff) | |
download | navit-2fb7cce312659b2674f8369d20d309d1bb10ae68.tar.gz |
Fix:maptool:Some cleanups
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3845 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/script')
-rwxr-xr-x | navit/script/compare_map | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/navit/script/compare_map b/navit/script/compare_map new file mode 100755 index 000000000..f16e3c5e8 --- /dev/null +++ b/navit/script/compare_map @@ -0,0 +1,26 @@ +#! /bin/sh +maptool=$0 +maptool=${maptool%/*} +maptool=$maptool/../maptool/maptool +dir=compare.$$ +mkdir $dir +file1=$1 +file2=$2 +unzip -vl $file1 | sed "s/[0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]//" | egrep -v '^Archive| files$' >$dir/dir1.txt +unzip -vl $file2 | sed "s/[0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]//" | egrep -v '^Archive| files$' >$dir/dir2.txt +diff $dir/dir1.txt $dir/dir2.txt | egrep "^<|^>" | +while read line +do + echo $line + case $line in + \>*) + name=${line##*\ } + echo $name + unzip -p $file1 $name >$dir/ways_split_.tmp + ( cd $dir && ../$maptool -D -s3 >data1.txt) 2>/dev/null + unzip -p $file2 $name >$dir/ways_split_.tmp + ( cd $dir && ../$maptool -D -s3 >data2.txt) 2>/dev/null + diff $dir/data1.txt $dir/data2.txt + ;; + esac +done |