equal
deleted
inserted
replaced
241 DEFUN_HG_DIR ?= /srv/hg/gadict |
241 DEFUN_HG_DIR ?= /srv/hg/gadict |
242 DEFUN_WWW_SRV ?= defun.work |
242 DEFUN_WWW_SRV ?= defun.work |
243 DEFUN_WWW_DIR ?= /srv/www/gadict |
243 DEFUN_WWW_DIR ?= /srv/www/gadict |
244 DEFUN_REL_DIR ?= /srv/www/gadict/download |
244 DEFUN_REL_DIR ?= /srv/www/gadict/download |
245 |
245 |
|
246 .PHONY: deploy2defun-full |
|
247 deploy2defun-full: deploy2defun deploy2defun-voa |
|
248 |
246 .PHONY: deploy2defun |
249 .PHONY: deploy2defun |
247 deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-hg deploy2defun-html |
250 deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-hg deploy2defun-html |
248 |
251 |
249 .PHONY: deploy2defun-hg |
252 .PHONY: deploy2defun-hg |
250 deploy2defun-hg: |
253 deploy2defun-hg: |
292 # First time you deploy to SourceForge (sf) you need manually login to: |
295 # First time you deploy to SourceForge (sf) you need manually login to: |
293 # $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net |
296 # $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net |
294 # as it may require interactive input for accepting server public key. |
297 # as it may require interactive input for accepting server public key. |
295 # Next time any action fully automated. |
298 # Next time any action fully automated. |
296 |
299 |
|
300 .PHONY: deploy2sf-full |
|
301 deploy2sf-full: deploy2sf deploy2sf-voa |
|
302 |
297 .PHONY: deploy2sf |
303 .PHONY: deploy2sf |
298 deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-voa deploy2sf-hg deploy2sf-html |
304 deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-hg deploy2sf-html |
299 |
305 |
300 .PHONY: deploy2sf-hg |
306 .PHONY: deploy2sf-hg |
301 deploy2sf-hg: |
307 deploy2sf-hg: |
302 hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ] |
308 hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ] |
303 |
309 |
308 for f in $(WWW_HTML_FILES) $(FAVICON); do \ |
314 for f in $(WWW_HTML_FILES) $(FAVICON); do \ |
309 n=$${f##*/}; \ |
315 n=$${f##*/}; \ |
310 echo "put $$f $$n"; \ |
316 echo "put $$f $$n"; \ |
311 echo "chmod 644 $$n"; \ |
317 echo "chmod 644 $$n"; \ |
312 done; \ |
318 done; \ |
313 echo 'quit'; \ |
|
314 ) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net |
|
315 |
|
316 .PHONY: deploy2sf-voa |
|
317 deploy2sf-voa: voa |
|
318 ( echo 'cd htdocs'; \ |
|
319 echo "put dist/pdf/voa-special.pdf"; \ |
|
320 echo "chmod 644 voa-special.pdf"; \ |
|
321 echo 'quit'; \ |
319 echo 'quit'; \ |
322 ) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net |
320 ) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net |
323 |
321 |
324 .PHONY: deploy2sf-dist |
322 .PHONY: deploy2sf-dist |
325 deploy2sf-dist: $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS) |
323 deploy2sf-dist: $(DISTREL_TARBALLS) $(DISTSRC_TARBALLS) |
357 \ |
355 \ |
358 case $(vatrelease) in \ |
356 case $(vatrelease) in \ |
359 no) echo "We are not at release. Build stop."; \ |
357 no) echo "We are not at release. Build stop."; \ |
360 exit 1;; \ |
358 exit 1;; \ |
361 esac |
359 esac |
|
360 |
|
361 ################################################################ |
|
362 # Printed VOA dictionary isn't going to change so there is no need to require |
|
363 # LaTeX in built environment to make releases. |
|
364 |
|
365 .PHONY: deploy-voa |
|
366 deploy-voa: deploy2defun-voa deploy2sf-voa |
|
367 |
|
368 .PHONY: deploy2defun-voa |
|
369 deploy2sf-voa: voa |
|
370 ( \ |
|
371 echo 'cd $(DEFUN_WWW_DIR)'; \ |
|
372 echo "put dist/pdf/voa-special.pdf"; \ |
|
373 echo "chmod 644 voa-special.pdf"; \ |
|
374 echo 'quit'; \ |
|
375 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV) |
|
376 |
|
377 .PHONY: deploy2sf-voa |
|
378 deploy2sf-voa: voa |
|
379 ( \ |
|
380 echo 'cd htdocs'; \ |
|
381 echo "put dist/pdf/voa-special.pdf"; \ |
|
382 echo "chmod 644 voa-special.pdf"; \ |
|
383 echo 'quit'; \ |
|
384 ) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net |
362 |
385 |
363 ################################################################ |
386 ################################################################ |
364 # Dist targets. |
387 # Dist targets. |
365 |
388 |
366 .PHONY: dist |
389 .PHONY: dist |