-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 1.16 KB
/
Makefile
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
40
41
python=. venv/bin/activate; python
git=/usr/bin/git
kommuner = 5406
#3020
#1101 3020
#
all: update_tagging_table
$(python) ssr2.py --output ssr2_to_osm_data/data/ --kommune ALL --include_zz --parallel 10 -q
$(MAKE) webpage
$(MAKE) sync
# $(MAKE) rotate_logs
#--include_zz
debug:
$(python) ssr2.py --output ssr2_to_osm_data/data/ --kommune $(kommuner)
#$(MAKE) webpage
webpage:
$(python) generate_webpage.py
debug_way:
($python) ssr2.py --output output_multi_point_as_way/ --create_multipoint_way --include_empty_tags --kommune $(kommuner)
rsync -rt --delete output_multi_point_as_way/ /Users/ob/Google\ Drive/ssr2_to_osm_data/output_multi_point_as_way/
sync:
-cd ssr2_to_osm_data;$(git) add -A;
-cd ssr2_to_osm_data;$(git) com -am "Data update";
-cd ssr2_to_osm_data;$(git) push;
update_tagging_table:
(cd ../ssr2osm;git pull)
#sync:
# s3cmd sync -H --delete-removed --acl-public --storage-class=REDUCED_REDUNDANCY --exclude=*DS_Store ssr2_to_osm/ s3://ssr2-to-osm/
# s3cmd setacl s3://ssr2-to-osm/ --acl-public --recursive
# rsync -rt --delete html/data/ /Users/ob/Google\ Drive/ssr2_to_osm_data/output/
rotate_logs:
logrotate logrotate.conf --state=logrotate.state