]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
doc: Replace pipe with temporary files
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 4 Dec 2014 01:22:28 +0000 (02:22 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 4 Dec 2014 01:23:53 +0000 (02:23 +0100)
This way errors in intermediate commands can be detected. E.g. pandoc
fails on buildbot and this is currently undetected.

rpp-test-sw/commands/doc/Makefile

index 395e7bce99707a4ddc1a527c4f40f533362bd547..4f640bbbd56fec38dbceae16c696dad7e815739a 100644 (file)
@@ -27,7 +27,10 @@ doc.html: docgen Makefile
        ./docgen wiki | pandoc -f markdown_strict -t html --base-header-level=2 > $@
 
 doc.tex: docgen Makefile
-       ./docgen pdfdoc | pandoc -f markdown_strict -t latex --base-header-level=1 | sed -e 's/\\subsection/\\newpage\\subsection/' > $@
+       ./docgen pdfdoc > $@.1
+       pandoc -f markdown_strict -t latex --base-header-level=1 $@.1 -o $@.2
+       sed -e 's/\\subsection/\\newpage\\subsection/' $@.2 > $@
+       rm $@.?
 
 upload: upload-mw upload-web