projects
/
marble
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d101913
)
Install osm base tile in the cache dir.
author
Dennis Nienhüser
<nienhues@fzi.de>
Sun, 4 Dec 2011 11:03:05 +0000
(12:03 +0100)
committer
Dennis Nienhüser
<nienhues@fzi.de>
Sun, 4 Dec 2011 11:03:05 +0000
(12:03 +0100)
packaging/debian/marble.postinst
patch
|
blob
|
history
diff --git
a/packaging/debian/marble.postinst
b/packaging/debian/marble.postinst
index
666bed5
..
d8149b0
100755
(executable)
--- 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 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
# 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"
# 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@<sourcedir format=\"PNG\"> earth/openstreetmap </sourcedir>@<sourcedir format=\"PNG\"> ${OSM_DIR_11} </sourcedir>@" "${OSM_DGML}"
# Finally, change the download location in the .dgml file. Also needed for new installations
sed -i "s@<sourcedir format=\"PNG\"> earth/openstreetmap </sourcedir>@<sourcedir format=\"PNG\"> ${OSM_DIR_11} </sourcedir>@" "${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
exit 0