equal
deleted
inserted
replaced
185 DEFUN_WWW_SRV ?= defun.work |
185 DEFUN_WWW_SRV ?= defun.work |
186 DEFUN_WWW_DIR ?= /srv/www/gadict |
186 DEFUN_WWW_DIR ?= /srv/www/gadict |
187 DEFUN_REL_DIR ?= /srv/www/gadict/download |
187 DEFUN_REL_DIR ?= /srv/www/gadict/download |
188 |
188 |
189 .PHONY: deploy2defun |
189 .PHONY: deploy2defun |
190 deploy2defun: deploy2defun-src deploy2defun-www deploy2defun-distrel |
190 deploy2defun: deploy2defun-src deploy2defun-www deploy2defun-dist |
191 |
191 |
192 .PHONY: deploy2defun-src |
192 .PHONY: deploy2defun-src |
193 deploy2defun-src: |
193 deploy2defun-src: |
194 hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ] |
194 hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ] |
195 |
195 |
203 echo "chmod 644 $$n"; \ |
203 echo "chmod 644 $$n"; \ |
204 done; \ |
204 done; \ |
205 echo 'quit'; \ |
205 echo 'quit'; \ |
206 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV) |
206 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV) |
207 |
207 |
208 .PHONY: deploy2defun-distrel |
208 .PHONY: deploy2defun-dist |
209 deploy2defun-distrel: $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS) |
209 deploy2defun-dist: $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS) |
210 ( \ |
210 ( \ |
211 echo "mkdir $(DEFUN_REL_DIR)"; \ |
211 echo "mkdir $(DEFUN_REL_DIR)"; \ |
212 echo "mkdir $(DEFUN_REL_DIR)/v$(vmajor).$(vminor)"; \ |
212 echo "mkdir $(DEFUN_REL_DIR)/v$(vmajor).$(vminor)"; \ |
213 echo "cd $(DEFUN_REL_DIR)/v$(vmajor).$(vminor)"; \ |
213 echo "cd $(DEFUN_REL_DIR)/v$(vmajor).$(vminor)"; \ |
214 for f in $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS); do \ |
214 for f in $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS); do \ |