From: Dennis Nienhüser Date: Sun, 4 Dec 2011 11:03:05 +0000 (+0100) Subject: Install osm base tile in the cache dir. X-Git-Url: http://vcs.maemo.org/git/?p=marble;a=commitdiff_plain;h=9c40b4489be8d84a0fd9867ca2a146cfe9da42cc Install osm base tile in the cache dir. --- diff --git a/packaging/debian/marble.postinst b/packaging/debian/marble.postinst index 666bed5..d8149b0 100755 --- a/packaging/debian/marble.postinst +++ b/packaging/debian/marble.postinst @@ -30,8 +30,11 @@ OSM_DIR_10="/home/user/MyDocs/.local/share/marble/maps/earth/openstreetmap" # The OSM tile download location in Marble 1.1 and later OSM_DIR_11="/home/user/MyDocs/.maps/OpenStreetMap I" +# The OSM base path +OSM_DIR_BASE="/opt/marble/share/marble/data/maps/earth/openstreetmap" + # The OSM theme .dgml file -OSM_DGML="/opt/marble/share/marble/data/maps/earth/openstreetmap/openstreetmap.dgml" +OSM_DGML="${OSM_DIR_BASE}/openstreetmap.dgml" # A file used as a flag to indicate a previous migration MIGRATED="${OSM_DIR_10}/.migrated" @@ -93,4 +96,8 @@ test -d "${OSM_DIR_10}/" && touch "${MIGRATED}" # Finally, change the download location in the .dgml file. Also needed for new installations sed -i "s@ earth/openstreetmap @ ${OSM_DIR_11} @" "${OSM_DGML}" +# Copy the base tile to the right place. +mkdir -p "${OSM_DIR_11}/0/0" +cp "${OSM_DIR_BASE}/0/0/0.png" "${OSM_DIR_11}/0/0/" + exit 0