Core:Fix:Added comment about editing
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Apr 2008 19:37:12 +0000 (19:37 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Apr 2008 19:37:12 +0000 (19:37 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1012 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/script/wiki2def

index aab730f..ab83493 100755 (executable)
@@ -2,6 +2,8 @@
 rm -f item_def.h.wiki
 rm -f osmmap_def.h.wiki
 IFS="|"
+echo "/* This file is generated from http://wiki.navit-project.org/index.php/Item_def.h, do not edit it, edit the wiki page instead */" >item_def.h.wiki
+echo "/* This file is generated from http://wiki.navit-project.org/index.php/Item_def.h, do not edit it, edit the wiki page instead */" >osmmap_def.h.wiki
 type="n"
 wget -O - "http://wiki.navit-project.org/index.php/Item_def.h?action=edit" |
 awk '/<textarea/,/<\/textarea/ { print $0 }' | 
@@ -28,9 +30,7 @@ do
        then
                for osmtag in $(echo "$osmtags" | sed 's/&lt;br\/&gt;/|/g')
                do
-                       key=${osmtag%%=*}
-                       value=${osmtag##*=}
-                       printf '"%s\t%s\t%s\t%s\\n"\n' $type $key $value $item >> osmmap_def.h.wiki
+                       printf '"%s\t%s\t%s\t%s\\n"\n' $type $osmtag $item >> osmmap_def.h.wiki
                done
        fi
 done