summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2020-05-31 22:09:28 -0400
committerMatthew Peveler <matt.peveler@gmail.com>2020-05-31 22:09:28 -0400
commitc31c6419c19b000e99d179041af1f792c0af9c7f (patch)
tree9d3987f1cbda70a6d5c6ca116b3285453d753e46
parente5dcee226cc2163bafc1cb06c01bd86826b490e4 (diff)
downloadasciidoc-py3-c31c6419c19b000e99d179041af1f792c0af9c7f.tar.gz
add make dist endpoint for creating tar and zip
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--.gitignore3
-rw-r--r--MANIFEST88
-rw-r--r--MANIFEST.in39
-rw-r--r--Makefile.in15
-rw-r--r--build_dist.sh9
5 files changed, 66 insertions, 88 deletions
diff --git a/.gitignore b/.gitignore
index d0b8585..f3b54eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,9 @@ doc/*.html
/config.*
/configure
Makefile
+MANIFEST
/tags
/gh-pages/
+/*.zip
+/*.tar.gz
diff --git a/MANIFEST b/MANIFEST
deleted file mode 100644
index 8bb9e7c..0000000
--- a/MANIFEST
+++ /dev/null
@@ -1,88 +0,0 @@
-a2x.py
-asciidoc.py
-asciidocapi.py
-BUGS
-BUGS.txt
-MANIFEST
-main.aap
-common.aap
-CHANGELOG
-CHANGELOG.txt
-asciidoc.conf
-docbook45.conf
-docbook5.conf
-help.conf
-html4.conf
-html5.conf
-lang-*.conf
-latex.conf
-slidy.conf
-text.conf
-xhtml11.conf
-xhtml11-quirks.conf
-COPYING
-COPYRIGHT
-dblatex/asciidoc-dblatex.sty
-dblatex/asciidoc-dblatex.xsl
-dblatex/dblatex-readme.txt
-doc/a2x.1
-doc/book.epub
-doc/asciidoc.1
-doc/asciidoc.conf
-doc/article-docinfo.xml
-doc/customers.csv
-doc/images/
-doc/main.aap
-doc/article.pdf
-doc/latex-filter.pdf
-doc/music-filter.pdf
-doc/source-highlight-filter.pdf
-doc/*.txt
-doc/asciidoc.dict
-docbook-xsl/*.txt
-docbook-xsl/*.xsl
-examples/website/main.aap
-examples/website/build-website.sh
-examples/website/*.css
-examples/website/*.js
-examples/website/customers.csv
-examples/website/images/
-examples/website/layout?.conf
-examples/website/*.txt
-filters/code/code-filter.conf
-filters/code/code-filter.py
-filters/code/code-filter-readme.txt
-filters/code/code-filter-test.txt
-filters/latex/latex2img.py
-filters/latex/latex-filter.conf
-filters/music/music-filter.conf
-filters/music/music2png.py
-filters/music/music-filter-test.txt
-filters/source/source-highlight-filter.conf
-filters/source/source-highlight-filter-test.txt
-filters/graphviz/graphviz-filter.conf
-filters/graphviz/graphviz2png.py
-filters/graphviz/asciidoc-graphviz-sample.txt
-images/icons/callouts/*.png
-images/icons/*.png
-images/icons/README
-images/smallnew.png
-images/tiger.png
-images/highlighter.png
-INSTALL
-INSTALL.txt
-configure
-configure.ac
-Makefile.in
-install-sh
-javascripts/*.js
-README
-README.asciidoc
-stylesheets/*.css
-tests/testasciidoc.py
-tests/testasciidoc.conf
-tests/asciidocapi.py
-tests/data/*.conf
-tests/data/*.txt
-themes/flask/*.css
-themes/volnitsky/*.css
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..60233d2
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,39 @@
+dblatex/*
+doc/a2x.1
+doc/asciidoc.1
+doc/asciidoc.conf
+doc/article-docinfo.xml
+doc/customers.csv
+doc/*.txt
+doc/asciidoc.dict
+docbook-xsl/*
+filters/**/*
+filters/*.py
+images/*.png
+images/icons/callouts/*
+images/icons/*.png
+images/icons/README
+javascripts/*.js
+stylesheets/*.css
+tests/data/*
+tests/testasciidoc.py
+tests/testasciidoc.conf
+themes/**/*
+website/*
+*.conf
+a2x.py
+asciidoc.py
+asciidocapi.py
+BUGS.txt
+build_website.sh
+CHANGELOG.txt
+configure
+configure.ac
+COPYRIGHT
+Dockerfile
+MANIFEST.in
+install-sh
+INSTALL.txt
+Makefile
+Makefile.in
+README.asciidoc
diff --git a/Makefile.in b/Makefile.in
index 241a6c3..3382df9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -226,6 +226,11 @@ docs:
( cd examples/website && \
cp -R * $(DESTDIR)/$(docdir)/examples/website )
+## website: generates the website into ./gh-pages directory (which will point at gh-pages branch)
+.PHONY: website
+website:
+ bash build_website.sh
+
## tags: generate tags index files for use with vim and other tags-capable editors
.PHONY: tags
tags:
@@ -250,6 +255,16 @@ uninstall:
clean:
rm -f $(manp)
+MANIFEST: MANIFEST.in
+ bash build_dist.sh
+
+##.
+## dist: creates the zip and tarball for release
+.PHONY: dist
+dist: vers_update manpages MANIFEST
+ tar -czf asciidoc-$(ASCIIDOCVERSION).tar.gz -T MANIFEST
+ zip asciidoc-$(ASCIIDOCVERSION).zip -@ < MANIFEST
+
##.
## test: run the asciidoc test suite
.PHONY: test
diff --git a/build_dist.sh b/build_dist.sh
new file mode 100644
index 0000000..2b9f874
--- /dev/null
+++ b/build_dist.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+rm -f MANIFEST
+while read in; do
+ if [ ! -z "${in}" ]; then
+ ls -1A ${in} >> MANIFEST
+ fi
+done < MANIFEST.in
+echo "MANIFEST" >> MANIFEST