summaryrefslogtreecommitdiff
path: root/navit/script
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-02 15:46:16 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-02 15:46:16 +0000
commit2fb7cce312659b2674f8369d20d309d1bb10ae68 (patch)
treea416a002637b8ffd83648a57a269fb36e78a96be /navit/script
parenta0932d4bc9d059e1bfe373efbabbcce0addbbd6e (diff)
downloadnavit-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-xnavit/script/compare_map26
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