-
Notifications
You must be signed in to change notification settings - Fork 1
/
c2c.mk
17 lines (15 loc) · 959 Bytes
/
c2c.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LOCAL_PLUGINS_PATH = dist
PLUGIN_REPO_PATH = s3://qgis.camptocamp.net/plugins/adl
PLUGIN_REPO_URL = https://qgis.camptocamp.net/plugins/adl
S3_CP_OPTIONS = --cache-control no-cache
include Makefile
.PHONY: upload
upload: ## Deploy plugin on qgis.camptocamp.net
upload: package
mkdir -p $(LOCAL_PLUGINS_PATH)
aws --profile qgis.camptocamp.net s3 sync --exclude "*" --include "*.txt" $(PLUGIN_REPO_PATH) $(LOCAL_PLUGINS_PATH)/
unzip -p $(LOCAL_PLUGINS_PATH)/$(PLUGINNAME).zip $(PLUGINNAME)/metadata.txt > $(LOCAL_PLUGINS_PATH)/$(PLUGINNAME).txt
qgis-plugins.xml $(LOCAL_PLUGINS_PATH)/ $(PLUGIN_REPO_URL)
aws --profile qgis.camptocamp.net s3 cp $(S3_CP_OPTIONS) $(LOCAL_PLUGINS_PATH)/$(PLUGINNAME).zip $(PLUGIN_REPO_PATH)/
aws --profile qgis.camptocamp.net s3 cp $(S3_CP_OPTIONS) $(LOCAL_PLUGINS_PATH)/$(PLUGINNAME).txt $(PLUGIN_REPO_PATH)/
aws --profile qgis.camptocamp.net s3 cp $(S3_CP_OPTIONS) $(LOCAL_PLUGINS_PATH)/plugins.xml $(PLUGIN_REPO_PATH)/