-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup
More file actions
executable file
·39 lines (35 loc) · 789 Bytes
/
setup
File metadata and controls
executable file
·39 lines (35 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#
# Install and set up required software
#
if [ -d bin/e00compr ]; then
echo "E00CONV ALREADY SET UP"
else
echo "SETTING UP E00CONV..."
(
mkdir -p bin && cd bin
curl -OL http://avce00.maptools.org/dl/e00compr-1.0.1.tar.gz
tar xzvf e00compr-1.0.1.tar.gz
ln -s e00compr-1.0.1 e00compr
cd e00compr-1.0.1
make
)
fi
if [ -f bin/imposm ]; then
echo "IMPOSM ALREADY SET UP"
else
echo "SETTING UP IMPOSM..."
(
mkdir -p bin && cd bin
git clone https://github.com/omniscale/imposm3.git
cd imposm3
make build
cd ..
ln -s imposm3/imposm imposm
)
fi
echo "INSTALLING PYTHON PACKAGES..."
virtualenv venv -p python3
source venv/bin/activate
pip install -r requirements.txt
echo "FINISHED INSTALLING LOCAL DEPENDENCIES"