summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.aap9
-rw-r--r--doc/main.aap241
-rw-r--r--main.aap77
-rw-r--r--website/main.aap159
4 files changed, 0 insertions, 486 deletions
diff --git a/common.aap b/common.aap
deleted file mode 100644
index 242884e..0000000
--- a/common.aap
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# Executed by all main.aap's before anything else.
-#
-
-_parent.VERS = 9.0.0rc1
-_parent.DATE = 27 November 2019
-
-all:
- :pass
diff --git a/doc/main.aap b/doc/main.aap
deleted file mode 100644
index 4e215b9..0000000
--- a/doc/main.aap
+++ /dev/null
@@ -1,241 +0,0 @@
-#####################################################################
-#
-# A-A-P file for making AsciiDoc distribution documentation.
-# (you can obtain A-A-P from http://www.a-a-p.org)
-#
-# Stuart Rackham <srackham@gmail.com>
-#####################################################################
-
-:execute ../common.aap
-
-ASCIIDOC = python ../asciidoc.py -a revnumber=$(VERS)@ -a revdate="$(DATE)@"
-A2X = python ../a2x.py
-
-:syseval which fop | :assign FOP
-@if not _no.FOP:
- :syseval which fop.sh | :assign FOP
-:syseval which lynx | :assign LYNX # Converts HTML to text.
-:syseval which xmllint | :assign XMLLINT # Validates XML.
-:syseval which dblatex | :assign DBLATEX # Converts DocBook XML to PDF.
-:syseval which aspell | :assign ASPELL
-:syseval which xsltproc | :assign XSLTPROC
-
-ROOT = asciidoc asciidoc.1
-INFILES = $*(ROOT).txt
-CHUNK_DIR = ./asciidoc.chunked
-HTMLHELP_DIR = ./asciidoc.htmlhelp
-HTMLHELP_FILE = asciidoc
-
-OUTFILES = $*(ROOT).html $*(ROOT).css.html $*(ROOT).css-embedded.html \
- asciidoc.pdf asciidoc.1.man a2x.1.man \
- article.html book.html book-multi.html asciidoc.xml asciidoc.1.xml \
- ../BUGS ../CHANGELOG ../README ../INSTALL \
- latex-backend.html \
- $HTMLHELP_DIR/index.html \
- $CHUNK_DIR/index.html \
- article.pdf \
- latexmath.pdf \
- latex-filter.pdf \
- source-highlight-filter.pdf \
- music-filter.pdf \
- book.epub \
- article-standalone.html \
- article-html5-toc2.html
-
-TEST_FILES = $*(ROOT).css-embedded.html
- article.css-embedded.html book.css-embedded.html \
- article.xml book.xml book-multi.xml asciidoc.xml asciidoc.1.xml \
- asciidoc.1.html a2x.1.xml music-filter.xml \
- book.epub asciidoc.epub \
-
-
-#####################################################################
-# Filetype build rules.
-#####################################################################
-
-:rule %.epub : %.txt
- :sys $A2X -f epub -d book --epubcheck --icons $source
-
-:rule %.text : %.txt
- # Convert AsciiDoc to HTML then use lynx(1) to convert HTML to text.
- @if not _no.LYNX:
- :print WARNING: lynx(1) unavailable: skipping $target file generation
- @else:
- opt = -f ../text.conf
- @if source_list[0] == 'asciidoc.1.txt':
- opt += -d manpage
- @else:
- opt += -n
- :sys $ASCIIDOC $opt -b html4 -o - $source | \
- lynx -dump -stdin > $target
-
-:rule %.css.html : %.txt
- opt =
- @if source_list[0] == 'asciidoc.1.txt':
- opt += -d manpage
- @else:
- opt += -n
- opt += -a toc -a toclevels=2 -a scriptsdir=../javascripts
- :sys $ASCIIDOC $opt -b xhtml11 -a linkcss -a icons -a stylesdir=../stylesheets -o $target $(source[0])
- @if _no.XMLLINT:
- :sys $XMLLINT --nonet --noout --valid $target
- @else:
- :print WARNING: xmllint(1) unavailable: skipping validation
-
-:rule %.css-embedded.html : %.txt
- opt =
- @if source_list[0] == 'asciidoc.1.txt':
- opt += -d manpage
- @else:
- opt += -n
- opt += -a toc -a toclevels=2
- :sys $ASCIIDOC -b xhtml11 $opt -o $target $(source[0])
- @if _no.XMLLINT:
- :sys $XMLLINT --nonet --noout --valid $target
- @else:
- :print WARNING: xmllint(1) unavailable: skipping validation
-
-:rule %.xml : %.txt
- opt =
- @if source_list[0] in ('asciidoc.1.txt','a2x.1.txt'):
- opt += -d manpage
- @else:
- opt += -n
- @if source_list[0] == 'asciidoc.txt' or source_list[0].startswith('book'):
- opt += -d book
- :sys $ASCIIDOC $opt -b docbook $(source[0])
- @if _no.XMLLINT:
- :sys $XMLLINT --nonet --noout --valid $target
- @else:
- :print WARNING: xmllint(1) unavailable: skipping validation
-
-:rule %.sgml : %.txt
- opt =
- @if source_list[0] in ('asciidoc.1.txt','a2x.1.txt'):
- opt += -d manpage
- @if source_list[0] == 'asciidoc.txt' or source_list[0].startswith('book'):
- opt += -d book
- :sys $ASCIIDOC $opt -b docbook-sgml $(source[0])
-
-:rule %.html: %.xml
- :sys $XSLTPROC --nonet --stringparam admon.textlabel 0 --stringparam html.stylesheet ./docbook-xsl.css ../docbook-xsl/xhtml.xsl $source >$target
-
-:rule %.man : %.xml
- :sys $XSLTPROC --nonet ../docbook-xsl/manpage.xsl $source
- :sys touch $target # Dummy target.
-
-:rule %.fo: %.xml
- :sys $XSLTPROC --nonet --stringparam admon.textlabel 0 ../docbook-xsl/fo.xsl $source >$target
-
-# This kludge forces the User Guide and LaTeX related PDFs to be generated
-# using dblatex so we include a dblatex example in the distribution.
-@if _no.DBLATEX:
- asciidoc.pdf: asciidoc.txt
- :sys $ASCIIDOC -b docbook $(source[0])
- :sys $DBLATEX -p ../dblatex/asciidoc-dblatex.xsl -s ../dblatex/asciidoc-dblatex.sty -o $target asciidoc.xml
- latexmath.pdf: latexmath.xml
- :sys $DBLATEX -p ../dblatex/asciidoc-dblatex.xsl -s ../dblatex/asciidoc-dblatex.sty -o $target $source
- latex-filter.pdf: latex-filter.xml
- :sys $DBLATEX -p ../dblatex/asciidoc-dblatex.xsl -s ../dblatex/asciidoc-dblatex.sty -o $target $source
-
-# Force the Source Highlighter PDF to be generated using dblatex
-# because dblatex has builtin source code highlighting.
-@if _no.DBLATEX:
- source-highlight-filter.pdf: source-highlight-filter.xml
- :sys $DBLATEX -p ../dblatex/asciidoc-dblatex.xsl -s ../dblatex/asciidoc-dblatex.sty -o $target $source
-
-@if _no.FOP:
- :rule %.pdf: %.fo
- :sys $FOP $source $target
-@elif _no.DBLATEX:
- # Fall back to dblatex if no FOP.
- :rule %.pdf: %.xml
- :sys $DBLATEX -p ../dblatex/asciidoc-dblatex.xsl -s ../dblatex/asciidoc-dblatex.sty -o $target $source
-@else:
- :rule %.pdf:
- :print WARNING: PDF processor unavailable: skipping $target file generation
-
-
-#####################################################################
-# Explicit file generation (cases that don't fit the rules).
-#####################################################################
-
-article-standalone.html: article.txt
- :sys $ASCIIDOC -a data-uri -a icons -a toc -a max-width=55em -o $target $source
-
-article-html5-toc2.html: article.txt
- :sys $ASCIIDOC -b html5 -a icons -a toc2 -a theme=flask -o $target $source
-
-asciidoc.1.html: asciidoc.1.txt
- :sys $ASCIIDOC -d manpage -b html4 $source
- @if _no.XMLLINT:
- :sys $XMLLINT --nonet --noout --valid --html $target
- @else:
- :print WARNING: xmllint(1) unavailable: skipping validation
-
-# User Guide 'chunked' into linked HTML pages.
-$CHUNK_DIR/index.html: asciidoc.txt
- :sys $A2X -fchunked -dbook --icons -D ./ asciidoc.txt
-
-# HTML Help formatted User Guide.
-$HTMLHELP_DIR/index.html: asciidoc.xml
- :sys $A2X -fhtmlhelp -dbook --icons -D ./ asciidoc.txt
-
-../BUGS: ../BUGS.text
- # Make BUGS.text and copy to BUGS.
- :copy ../BUGS.text ../BUGS
-
-../CHANGELOG: ../CHANGELOG.text
- # Make CHANGELOG.text and copy to CHANGELOG.
- :copy ../CHANGELOG.text ../CHANGELOG
-
-../README.text : ../README.asciidoc
- # Convert AsciiDoc to HTML then use lynx(1) to convert HTML to text.
- @if not _no.LYNX:
- :print WARNING: lynx(1) unavailable: skipping $target file generation
- @else:
- :sys $ASCIIDOC -f ../text.conf -n -b html4 -o - $source | \
- lynx -dump -stdin > $target
-
-../README: ../README.text
- # Make README.text and copy to README.
- :copy ../README.text ../README
-
-../INSTALL: ../INSTALL.text
- # Make INSTALL.text and copy to INSTALL.
- :copy ../INSTALL.text ../INSTALL
-
-asciimathml.html: asciimathml.txt
- :sys $ASCIIDOC -a asciimath $source
- # No xmllint(1) checking -- fails on embedded JavaScript.
-
-latexmathml.html: latexmathml.txt
- :sys $ASCIIDOC -a latexmath $source
- # No xmllint(1) checking -- fails on embedded JavaScript.
-
-
-#####################################################################
-# Build commands.
-#####################################################################
-
-all: $OUTFILES
-
-clean:
- :del {f} $OUTFILES $TEST_FILES
- :del {f} *.bak # Remove aspell backups.
-
-spell: $INFILES ../CHANGELOG.txt ../README.asciidoc ../BUGS.txt ../INSTALL.txt \
- a2x.1.txt faq.txt asciidocapi.txt testasciidoc.txt \
- epub-notes.txt publishing-ebooks-with-asciidoc.txt \
- source-highlight-filter.txt \
- slidy.txt slidy-example.txt
- # Interactively spell check all files.
- @for s in source_list:
- :sys {i} $ASPELL check -p ./asciidoc.dict $s
-
-clean_testfiles:
- :del {f} $TEST_FILES
- :del {f} music*.png # Force Lilypond to run.
-
-test: clean_testfiles $TEST_FILES
- # Force generation and validation of .html and Docbook (.xml) files.
diff --git a/main.aap b/main.aap
deleted file mode 100644
index 6014f62..0000000
--- a/main.aap
+++ /dev/null
@@ -1,77 +0,0 @@
-#####################################################################
-#
-# A-A-P file for making AsciiDoc distribution.
-# (you can obtain A-A-P from http://www.a-a-p.org)
-#
-# Stuart Rackham <srackham@gmail.com>
-#####################################################################
-
-:execute ./common.aap
-
-all: distribution
-
-vers:
- :print Version: $VERS (released $DATE)
-
-vers_update:
- # Propagate version number in common.aap to other versioned files.
- :syseval grep "$$VERSION = '$(VERS)'" asciidoc.py | :assign dummy
- @if exit != 0:
- :print updating version numbers...
- @for (fname,match) in (('asciidoc.py',r'^VERSION = '),('a2x.py',r'^VERSION = '),('configure.ac',r'^AC_INIT\(.*\)')):
- :sys sed '/$match/ s/[0-9.][0-9.a-zA-Z_]\+/$VERS/' <$fname >$(fname).tmp
- :sys mv -f $(fname).tmp $fname
- @if fname in ('asciidoc.py','a2x.py'):
- :sys chmod +x $fname
-
-tags:
- :sys rm -f tags
- :sys ctags asciidoc.py asciidocapi.py tests/testasciidoc.py
-
-docs:
- :execute ./doc/main.aap
-
-website:
- :execute ./examples/website/main.aap
-
-distribution: vers_update docs website
- NAME = asciidoc-$(VERS)
- # Make configure script.
- :sys autoconf
- :sys ln -s . $(NAME)
- # Make tarball of all files in MANIFEST.
- :sys tar -czf $(NAME).tar.gz \
- ``sed s:^:$(NAME)/: MANIFEST``
- # Make zip file.
- ZIP = `program_path("zip")`
- @if ZIP:
- :sys rm -f $(NAME).zip
- :sys ls ``sed s:^:$(NAME)/: MANIFEST`` | $ZIP $(NAME).zip -@
- # Zip files don't know about symlinks so just duplicate the
- # files.
- :sys $ZIP $(NAME).zip \
- $(NAME)/doc/images/tiger.png \
- $(NAME)/doc/images/smallnew.png \
- $(NAME)/doc/images/icons/README \
- $(NAME)/doc/images/icons/*.png \
- $(NAME)/doc/images/icons/callouts/*.png \
- $(NAME)/examples/website/images/tiger.png \
- $(NAME)/examples/website/images/highlighter.png \
- $(NAME)/examples/website/images/smallnew.png \
- $(NAME)/examples/website/images/icons/README \
- $(NAME)/examples/website/images/icons/*.png \
- $(NAME)/examples/website/images/icons/callouts/*.png
- :sys rm -f $(NAME)
- @else:
- :print WARNING: zip(1) unavailable, skipping zip file creation
- :sys rm -f $(NAME)
-
-test:
- :sys python ./asciidoc.py --doctest
- :sys python ./asciidocapi.py
- :execute ./doc/main.aap test
- :syseval ls ./tests/data/*.html | :assign TESTFILES
- @if _no.TESTFILES:
- :sys python ./tests/testasciidoc.py run
- @else:
- :print WARNING: no test files, run './tests/testasciidoc.py update'
diff --git a/website/main.aap b/website/main.aap
deleted file mode 100644
index 166b3f9..0000000
--- a/website/main.aap
+++ /dev/null
@@ -1,159 +0,0 @@
-#####################################################################
-#
-# A-A-P file for making AsciiDoc web site.
-# (you can obtain A-A-P from http://www.a-a-p.org)
-#
-# Stuart Rackham <srackham@gmail.com>
-#####################################################################
-
-:execute ../../common.aap
-
-WEB_NAME = asciidoc
-
-LAYOUT ?= layout2
-
-# Various document locations.
-PROJ_DIR = ../..
-DOCS_DIR = $PROJ_DIR/doc
-LOCAL_WEB = ~/webs/asciidoc # Local web marshalling location.
-
-# List of web pages.
-WEB_ROOT =
- a2x.1
- asciidoc-docbook-xsl
- asciidoc-graphviz-sample
- asciimathml
- asciidocapi
- CHANGELOG
- epub-notes
- faq
- index
- INSTALL
- latex-backend
- latex-bugs
- latexmathml
- manpage
- music-filter
- latex-filter
- publishing-ebooks-with-asciidoc
- README
- README-website
- source-highlight-filter
- support
- testasciidoc
- userguide
- version83
- newtables
- newlists
- slidy
- slidy-example
- plugins
-WEB_PAGES = $*(WEB_ROOT).html
-WEB_SOURCE = $*(WEB_ROOT).txt
-
-# Web site specific pages to spell check.
-SPELL_CHECK =
- index.txt
- README-website.txt
- support.txt
-
-# Accompanying documents in DOCS_DIR.
-DOCS_ROOT =
- asciidoc
- asciidoc.1
-DOCS =
- $*(DOCS_ROOT).txt
- $*(DOCS_ROOT).html
- $*(DOCS_ROOT).css-embedded.html
- asciidoc.pdf
- asciidoc.epub
- asciidoc.1
- article.txt article.html article-standalone.html article-html5-toc2.html
- book.txt book.html
- book-multi.txt book-multi.html
- book.epub
- article.pdf
- latexmath.pdf
-
-# Client applications.
-@if OSTYPE == 'posix':
- ASPELL = `program_path("aspell")`
-@else:
- :print ERROR: Unsupported operating system $OSTYPE
- :exit
-
-:syseval which xmllint | :assign XMLLINT # Validates XML.
-
-ASCIIDOC = python ../../asciidoc.py
-# AsciiDoc options to generate documentation HTML.
-ASCIIDOC_HTML =
- $ASCIIDOC -b xhtml11 -f $(LAYOUT).conf -a icons -a badges -a revnumber=$(VERS)@ -a revdate="$(DATE)@" -a max-width=70em -a source-highlighter=highlight
-
-:rule %.html : %.txt $(LAYOUT).conf
- @if target in ('userguide.html','faq.html'):
- # User guide has author, revision, date in header.
- opts = -a toc -a numbered
- @elif target == 'index.html':
- # Index has description and keywords meta tags.
- opts = -a index-only
- @elif target in ('manpage.html','a2x.1.html'):
- opts = -d manpage
- @elif target == 'asciimathml.html':
- opts = -a asciimath
- @elif target == 'latexmathml.html':
- opts = -a latexmath
- @else:
- opts =
- @if target in ('index.html','INSTALL.html','asciidocapi.html','testasciidoc.html','publishing-ebooks-with-asciidoc.html'):
- opts += -a toc -a toclevels=1
- :sys $ASCIIDOC_HTML $opts $(source[0])
- @if _no.XMLLINT:
- :sys $XMLLINT --nonet --noout --valid $target
- @else:
- :print WARNING: xmllint(1) unavailable: skipping validation
-
-slidy.html : slidy.txt
- :sys $ASCIIDOC $(source[0])
-
-slidy-example.html : slidy-example.txt
- :sys $ASCIIDOC $(source[0])
-
-all: $(WEB_PAGES)
-
-copy: all
- # Copy to local web page.
- :sys rm -rf $LOCAL_WEB/*
- :sys mkdir -p $LOCAL_WEB/images/icons/callouts
- :sys cp $WEB_PAGES $LOCAL_WEB
- :sys cp $WEB_SOURCE $LOCAL_WEB
- :sys cp *.css $LOCAL_WEB
- :sys cp *.js $LOCAL_WEB
- :execute $PROJ_DIR/main.aap distribution # Make docs and tarball.
- :sys cp $DOCS_DIR/$*DOCS $LOCAL_WEB
- :sys cp $PROJ_DIR/stylesheets/docbook-xsl.css $LOCAL_WEB
- # Copy images.
- :sys cp $DOCS_DIR/images/*.png $LOCAL_WEB/images/
- :sys cp $DOCS_DIR/images/icons/*.png $LOCAL_WEB/images/icons/
- :sys cp $DOCS_DIR/images/icons/callouts/*.png $LOCAL_WEB/images/icons/callouts/
- # Copy chunked User Guide.
- :sys rm -rf $LOCAL_WEB/chunked/
- :sys mkdir -p $LOCAL_WEB/chunked/
- :sys cp $DOCS_DIR/asciidoc.chunked/*.html $LOCAL_WEB/chunked/
- :sys cp $DOCS_DIR/asciidoc.chunked/*.css $LOCAL_WEB/chunked/
- :sys cp -R $DOCS_DIR/asciidoc.chunked/images $LOCAL_WEB/chunked/
- :sys cp music?.* $LOCAL_WEB
- :sys cp sample?.png $LOCAL_WEB
- :sys cp latex?.png $LOCAL_WEB
- :sys cp *__*.png $LOCAL_WEB
-
-clean:
- :del {f} $WEB_PAGES
- :del {f} *.bak # Remove aspell backups.
-
-spell: $(SPELL_CHECK)
- # Interactively spell check all files.
- @if _no.ASPELL:
- @for s in source_list:
- :sys {i} $ASPELL check -p ./$(WEB_NAME)-website.dict $s
- @else:
- :print WARNING: aspell(1) unavailable, skipping spell checking