--- a/Makefile Wed Jun 01 15:58:15 2016 +0300
+++ b/Makefile Wed Jun 01 16:14:53 2016 +0300
@@ -184,9 +184,10 @@
DEFUN_HG_DIR ?= /srv/hg/gadict
DEFUN_WWW_SRV ?= defun.work
DEFUN_WWW_DIR ?= /srv/www/gadict
+DEFUN_REL_DIR ?= /srv/www/gadict/download
.PHONY: deploy2defun
-deploy2defun: deploy2defun-src deploy2defun-www
+deploy2defun: deploy2defun-src deploy2defun-www deploy2defun-distrel
.PHONY: deploy2defun-src
deploy2defun-src:
@@ -204,6 +205,18 @@
echo 'quit'; \
) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV)
+.PHONY: deploy2defun-distrel
+deploy2defun-distrel: $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS)
+ ( \
+echo "mkdir $(DEFUN_REL_DIR)"; \
+echo "mkdir $(DEFUN_REL_DIR)/v$(vmajor).$(vminor)"; \
+echo "cd $(DEFUN_REL_DIR)/v$(vmajor).$(vminor)"; \
+for f in $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS); do \
+ n=$${f##*/}; \
+ echo "put $$f $$n"; \
+ echo "chmod 644 $$n"; \
+done; \
+) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV)
SF_USER ?= gavenkoa
@@ -242,7 +255,6 @@
.PHONY: release2sf
deploy2sf-release: validate-release $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS)
exit 1
- : TODO broken due to new project hierarchy
( echo 'cd /home/frs/project/$(shell v=$(pkgname); echo $${v:0:1}/$${v:0:2})/$(pkgname)'; \
echo "put README.rst"; \
echo "chmod 644 README.rst"; \