source: subversion/applications/rendering/parking/mapnik/mapnik-to-bw-trunk-for-toolserver.sh @ 27657

Last change on this file since 27657 was 26323, checked in by kdrangmeister, 8 years ago

change deployment

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1#! /bin/bash
2# run in the current workspace, assuming that "Parking" and "mapnik" are checked out projects.
3MAPNIKSRC=../../mapnik
4PARKINGSRC=.
5DESTDIR=/tmp/deploy
6TMPDIR=/tmp/parking-mapnik
7
8#--------------------------------------------------------
9# bw
10#--------------------------------------------------------
11
12MAPNIKPATCHED=$TMPDIR/mapnik
13PARKINGPATCHED=$TMPDIR/parking
14# cleanup
15rm -rf $DESTDIR
16rm -rf $TMPDIR
17# copy mapnik to temp
18mkdir -p $MAPNIKPATCHED
19cp -r $MAPNIKSRC/* $MAPNIKPATCHED
20# patch mapnik to have local settings
21cp ./mapnik-patch/datasource-settings.xml.inc.toolserver $MAPNIKPATCHED/inc/datasource-settings.xml.inc
22cp ./mapnik-patch/fontset-settings.xml.inc.toolserver $MAPNIKPATCHED/inc/fontset-settings.xml.inc
23cp ./mapnik-patch/settings.xml.inc.toolserver $MAPNIKPATCHED/inc/settings.xml.inc
24
25python mapnik_to_bw.py -s $MAPNIKPATCHED -f osm.xml -d $DESTDIR
26
27#--------------------------------------------------------
28# parking
29#--------------------------------------------------------
30
31# copy parking to temp
32mkdir -p $PARKINGPATCHED
33cp -r $PARKINGSRC/colorents* $PARKINGPATCHED
34#TODO ^^^^ remove it ###
35#cp -r $PARKINGSRC/osm-park* $PARKINGPATCHED
36cp -r $PARKINGSRC/osm-parktrans-src.xml $PARKINGPATCHED
37
38# old: get parking/inc from own copy
39#cp -r $PARKINGSRC/parking-inc $PARKINGPATCHED
40#mv $PARKINGPATCHED/parking-inc $PARKINGPATCHED/inc
41# new: get parking/inc from mapnik + add parking layer files from parking-inc-src
42cp -r $MAPNIKSRC/inc $PARKINGPATCHED
43cp $PARKINGSRC/parking-inc-src/layer-parking* $PARKINGPATCHED/inc
44
45cp -r $PARKINGSRC/parking-symbols-src $PARKINGPATCHED
46#mv $PARKINGPATCHED/parking-symbols-src $PARKINGPATCHED/parking-symbols
47cp -r $MAPNIKSRC/symbols $PARKINGPATCHED
48
49cp -r $DESTDIR/bw-noicons/osm-bw-noicons.xml $PARKINGPATCHED/osm-parking-src.xml
50
51# patch parking to have local settings
52cp ./mapnik-patch/datasource-settings.xml.inc.toolserver $PARKINGPATCHED/inc/datasource-settings.xml.inc
53cp ./mapnik-patch/fontset-settings.xml.inc.toolserver $PARKINGPATCHED/inc/fontset-settings.xml.inc
54cp ./mapnik-patch/settings.xml.inc.toolserver $PARKINGPATCHED/inc/settings.xml.inc
55
56#TODO are these ^^^^ settings the same as with mapnik??? ###
57
58# call converter
59python generate_parking_layer_xml.py -s $PARKINGPATCHED -f osm-parktrans-src.xml -d $DESTDIR
Note: See TracBrowser for help on using the repository browser.