summaryrefslogtreecommitdiff
path: root/support/tikztosvg/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-17 03:00:53 +0000
committerNorbert Preining <norbert@preining.info>2020-08-17 03:00:53 +0000
commit50a9f2d0b130f011b55cf5a93d5282ac9e92c2e3 (patch)
treed42295221fbe622608c0acd9898b10963ea1e552 /support/tikztosvg/Makefile
parent774981e6b2a6a0bb37b56e4b78d772fdb954876e (diff)
CTAN sync 202008170300
Diffstat (limited to 'support/tikztosvg/Makefile')
-rw-r--r--support/tikztosvg/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/support/tikztosvg/Makefile b/support/tikztosvg/Makefile
new file mode 100644
index 0000000000..bae45ce4e3
--- /dev/null
+++ b/support/tikztosvg/Makefile
@@ -0,0 +1,35 @@
+# Packages the application for CTAN
+package:
+ # Render the manpage
+ asciidoctor -b manpage -o man/tikztosvg.1 man/man.adoc
+
+ # Render the README as PDF
+ asciidoctor -r asciidoctor-pdf -b pdf -o tikztosvg.pdf README.adoc
+
+ # Render the README as Markdown
+ asciidoctor -b docbook -a leveloffset=+1 -o - README.adoc \
+ | pandoc --atx-headers \
+ --wrap=preserve \
+ -t markdown_github \
+ -f docbook - \
+ | comby '![:[name]](:[link])' \
+ '![:[name]](examples/:[link])' \
+ -stdin \
+ -stdout \
+ -m .md \
+ | comby ':imagesdir: :[[value]]' '' -stdin -stdout -m .md \
+ | comby ':source-highlighter: :[[value]]' '' -stdin -stdout -m .md \
+ > README.md
+
+ # Package the repository as a tar file
+ tar -cvO \
+ --directory=.. \
+ --exclude='.*' \
+ --exclude='*.tar.gz' \
+ --exclude='README.adoc' \
+ tikztosvg \
+ | gzip -c /dev/stdin > tikztosvg.tar.gz
+
+install:
+ sh install.sh
+