Build and deploy VOA in PDF format.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 13 Oct 2015 17:43:56 +0300
changeset 308 7a5f4265a581
parent 307 7526974e0e5b
child 309 95f2fcbe6e9c
Build and deploy VOA in PDF format.
.hgignore
CHANGES.rst
Makefile
--- a/.hgignore	Tue Oct 13 16:57:47 2015 +0300
+++ b/.hgignore	Tue Oct 13 17:43:56 2015 +0300
@@ -7,6 +7,10 @@
 *.dict.dz
 *.index
 *.html
+voa-special.aux
+voa-special.log
+voa-special.out
+voa-special.pdf
 *.tar.gz
 *.tar.bz2
 gadict-*.*/**
--- a/CHANGES.rst	Tue Oct 13 16:57:47 2015 +0300
+++ b/CHANGES.rst	Tue Oct 13 17:43:56 2015 +0300
@@ -12,6 +12,11 @@
 
 .. include:: VERSION.rst
 
+tag:t0.6, 2015-10-13.
+=====================
+
+ * VOA dictionary in print form.
+
 tag:t0.5, 2012-07-13.
 =====================
 
--- a/Makefile	Tue Oct 13 16:57:47 2015 +0300
+++ b/Makefile	Tue Oct 13 17:43:56 2015 +0300
@@ -107,6 +107,8 @@
 endif
 RST2HTML_FLAGS := $(RST_FLAGS)
 
+LATEX2PDF := pdflatex
+
 ################################################################
 # Install paths.
 
@@ -168,7 +170,7 @@
 # Next time any action fully automated.
 
 .PHONY: deploy2sf
-deploy2sf: deploy2sf-src deploy2sf-doc deploy2sf-release
+deploy2sf: deploy2sf-src deploy2sf-doc deploy2sf-voa deploy2sf-release
 
 .PHONY: deploy2sf-src
 deploy2sf-src:
@@ -185,6 +187,15 @@
 echo 'quit'; \
 ) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net
 
+.PHONY: deploy2sf-voa
+deploy2sf-voa: voa
+	( echo 'cd htdocs'; \
+  echo "put voa-special.pdf"; \
+  echo "chmod 644 voa-special.pdf"; \
+done; \
+echo 'quit'; \
+) | sftp -b - $(SF_USER),$(pkgname)@web.sourceforge.net
+
 .PHONY: deploy2sf-release
 deploy2sf-release: deploy-check $(DIST_TARBALLS) $(DISTSRC_TARBALLS)
 	( echo 'cd /home/frs/project/$(shell v=$(pkgname); echo $${v:0:1}/$${v:0:2})/$(pkgname)'; \
@@ -323,6 +334,12 @@
 $(LOGO_PNG_FILES): $(LOGO_NAME)-%.png: $(LOGO_SVG)
 	convert +antialias -background transparent $< -resize $* $@
 
+.PHONY: voa
+voa: voa-special.pdf
+
+voa-special.pdf: contrib/voa-special.tex
+	$(LATEX2PDF) -output-directory . $<
+
 ################################################################
 # Helpers targets.
 
@@ -405,4 +422,5 @@
 	rm -f $(DICTDZ_FILES) $(INDEX_FILES) $(RST_GEN_FILES) $(RST_HTML_FILES) $(LOGO_PNG_FILES)
 	rm -rf $(DIST_DIR) $(DIST_TARBALLS)
 	rm -rf $(DISTSRC_DIR) $(DISTSRC_TARBALLS)
+	rm -f $(patsubst %, voa-special%, .pdf .log .out .aux)