Deploy dictionaries in HTML format.
--- a/Makefile Fri Mar 03 16:13:37 2017 +0200
+++ b/Makefile Fri Mar 03 17:32:13 2017 +0200
@@ -235,7 +235,7 @@
DEFUN_REL_DIR ?= /srv/www/gadict/download
.PHONY: deploy2defun
-deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-hg
+deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-hg deploy2defun-html
.PHONY: deploy2defun-hg
deploy2defun-hg:
@@ -266,6 +266,18 @@
done; \
) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV)
+.PHONY: deploy2defun-html
+deploy2defun-html: $(DICT_HTML_FILES)
+ ( \
+echo 'cd $(DEFUN_WWW_DIR)'; \
+for f in $(DICT_HTML_FILES); do \
+ n=$${f##*/}; \
+ echo "put $$f $$n"; \
+ echo "chmod 644 $$n"; \
+done; \
+echo 'quit'; \
+) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV)
+
SF_USER ?= gavenkoa
# First time you deploy to SourceForge (sf) you need manually login to:
@@ -274,7 +286,7 @@
# Next time any action fully automated.
.PHONY: deploy2sf
-deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-voa deploy2sf-hg
+deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-voa deploy2sf-hg deploy2sf-html
.PHONY: deploy2sf-hg
deploy2sf-hg:
@@ -315,6 +327,17 @@
echo 'quit'; \
) | sftp -b - $(SF_USER),$(pkgname)@frs.sourceforge.net
+.PHONY: deploy2sf-www
+deploy2sf-www: $(DICT_HTML_FILES)
+ ( echo 'cd htdocs'; \
+for f in $(DICT_HTML_FILES); do \
+ n=$${f##*/}; \
+ echo "put $$f $$n"; \
+ echo "chmod 644 $$n"; \
+done; \
+echo 'quit'; \
+) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net
+
.PHONY: validate-release
validate-release:
\