Makefile
changeset 777 6c191fc06fce
parent 776 d57c28843156
child 779 c2520fea743b
equal deleted inserted replaced
776:d57c28843156 777:6c191fc06fce
   233 DEFUN_WWW_SRV ?= defun.work
   233 DEFUN_WWW_SRV ?= defun.work
   234 DEFUN_WWW_DIR ?= /srv/www/gadict
   234 DEFUN_WWW_DIR ?= /srv/www/gadict
   235 DEFUN_REL_DIR ?= /srv/www/gadict/download
   235 DEFUN_REL_DIR ?= /srv/www/gadict/download
   236 
   236 
   237 .PHONY: deploy2defun
   237 .PHONY: deploy2defun
   238 deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-hg
   238 deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-hg deploy2defun-html
   239 
   239 
   240 .PHONY: deploy2defun-hg
   240 .PHONY: deploy2defun-hg
   241 deploy2defun-hg:
   241 deploy2defun-hg:
   242 	hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ]
   242 	hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ]
   243 
   243 
   264   echo "put $$f $$n"; \
   264   echo "put $$f $$n"; \
   265   echo "chmod 644 $$n"; \
   265   echo "chmod 644 $$n"; \
   266 done; \
   266 done; \
   267 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV)
   267 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV)
   268 
   268 
       
   269 .PHONY: deploy2defun-html
       
   270 deploy2defun-html: $(DICT_HTML_FILES)
       
   271 	( \
       
   272 echo 'cd $(DEFUN_WWW_DIR)'; \
       
   273 for f in $(DICT_HTML_FILES); do \
       
   274   n=$${f##*/}; \
       
   275   echo "put $$f $$n"; \
       
   276   echo "chmod 644 $$n"; \
       
   277 done; \
       
   278 echo 'quit'; \
       
   279 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV)
       
   280 
   269 SF_USER ?= gavenkoa
   281 SF_USER ?= gavenkoa
   270 
   282 
   271 # First time you deploy to SourceForge (sf) you need manually login to:
   283 # First time you deploy to SourceForge (sf) you need manually login to:
   272 #   $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net
   284 #   $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net
   273 # as it may require interactive input for accepting server public key.
   285 # as it may require interactive input for accepting server public key.
   274 # Next time any action fully automated.
   286 # Next time any action fully automated.
   275 
   287 
   276 .PHONY: deploy2sf
   288 .PHONY: deploy2sf
   277 deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-voa deploy2sf-hg
   289 deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-voa deploy2sf-hg deploy2sf-html
   278 
   290 
   279 .PHONY: deploy2sf-hg
   291 .PHONY: deploy2sf-hg
   280 deploy2sf-hg:
   292 deploy2sf-hg:
   281 	hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ]
   293 	hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ]
   282 
   294 
   312   echo "put $$f $$n"; \
   324   echo "put $$f $$n"; \
   313   echo "chmod 644 $$n"; \
   325   echo "chmod 644 $$n"; \
   314 done; \
   326 done; \
   315 echo 'quit'; \
   327 echo 'quit'; \
   316 ) | sftp -b - $(SF_USER),$(pkgname)@frs.sourceforge.net
   328 ) | sftp -b - $(SF_USER),$(pkgname)@frs.sourceforge.net
       
   329 
       
   330 .PHONY: deploy2sf-www
       
   331 deploy2sf-www: $(DICT_HTML_FILES)
       
   332 	( echo 'cd htdocs'; \
       
   333 for f in $(DICT_HTML_FILES); do \
       
   334   n=$${f##*/}; \
       
   335   echo "put $$f $$n"; \
       
   336   echo "chmod 644 $$n"; \
       
   337 done; \
       
   338 echo 'quit'; \
       
   339 ) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net
   317 
   340 
   318 .PHONY: validate-release
   341 .PHONY: validate-release
   319 validate-release:
   342 validate-release:
   320 	\
   343 	\
   321 case ${visclean} in \
   344 case ${visclean} in \