diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2007-10-29 10:40:22 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2007-10-29 10:40:22 +1300 |
commit | 4ab4c2a710abc97b8eea608e30cca0206dc30be1 (patch) | |
tree | 3183b2a36956b10a3b595c53a20c1256f00b9ce9 | |
parent | 0d8d7ed40c5155552ffb86d49412ce0c40ba151d (diff) | |
download | asciidoc-4ab4c2a710abc97b8eea608e30cca0206dc30be1.tar.gz |
Added AAP files and MANIFEST.
-rw-r--r-- | MANIFEST | 65 | ||||
-rw-r--r-- | doc/main.aap | 4 | ||||
-rw-r--r-- | examples/website/main.aap | 139 | ||||
-rw-r--r-- | main.aap | 43 |
4 files changed, 249 insertions, 2 deletions
diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..24c27f5 --- /dev/null +++ b/MANIFEST @@ -0,0 +1,65 @@ +a2x +asciidoc.py +BUGS +BUGS.txt +CHANGELOG +CHANGELOG.txt +*.conf +COPYING +COPYRIGHT +doc/a2x.1 +doc/article.pdf +doc/asciidoc.1 +doc/asciidoc.chm +doc/asciidoc.conf +doc/asciidoc-revhistory.xml +docbook-xsl/*.patch +docbook-xsl/*.txt +docbook-xsl/*.xsl +doc/*.css +doc/customers.csv +doc/*.html +doc/images/ +doc/main.aap +doc/music-filter.pdf +doc/source-highlight-filter.pdf +doc/*.txt +examples/website/ASCIIMathML.js +examples/website/LaTeXMathML.js +examples/website/build-website.sh +examples/website/*.css +examples/website/customers.csv +examples/website/*.html +examples/website/images/ +examples/website/layout?.conf +examples/website/music?.* +examples/website/toc.js +examples/website/*.txt +filters/code-filter.conf +filters/code-filter.py +filters/code-filter-readme.txt +filters/code-filter-test.txt +filters/code-filter-test-c++.txt +filters/music-filter.conf +filters/music2png.py +filters/music-filter-test.txt +filters/source-highlight-filter.conf +filters/source-highlight-filter-test.txt +images/icons/callouts/*.png +images/icons/*.png +images/icons/README +images/smallnew.png +images/tiger.png +images/highlighter.png +INSTALL +install.sh +uninstall.sh +INSTALL.txt +javascripts/ASCIIMathML.js +javascripts/LaTeXMathML.js +javascripts/toc.js +README +README.txt +stylesheets/*.css +vim/syntax/asciidoc.vim +vim/ftdetect/asciidoc_filetype.vim diff --git a/doc/main.aap b/doc/main.aap index 562f9e8..625ecfa 100644 --- a/doc/main.aap +++ b/doc/main.aap @@ -6,8 +6,8 @@ # Stuart Rackham <srackham@methods.co.nz>
#####################################################################
-VERS = 8.2.3
-DATE = 12 September 2007
+VERS = 8.2.4
+DATE = ?? November 2007
#####################################################################
# Programs used by this script.
diff --git a/examples/website/main.aap b/examples/website/main.aap new file mode 100644 index 0000000..91147dd --- /dev/null +++ b/examples/website/main.aap @@ -0,0 +1,139 @@ +# A-A-P file for making AsciiDoc Web pages. + +WEB_NAME = asciidoc +VERS = 8.2.4 +DATE = ?? November 2007 + +LAYOUT ?= layout1 + +# Various document locations. +PROJ_DIR = ../.. +DOCS_DIR = $PROJ_DIR/doc +LOCAL_WEB = ~/tmp/asciidoc-web # Local web marshalling location. + +# List of web pages. +WEB_ROOT = + a2x.1 + asciidoc-docbook-xsl + asciimath + CHANGELOG + downloads + faq + index + INSTALL + latex-backend + latexmath + manpage + music-filter + README + README-website + source-highlight-filter + support + userguide +WEB_PAGES = $*(WEB_ROOT).html +WEB_SOURCE = $*(WEB_ROOT).txt + +# Web site specific pages to spell check. +SPELL_CHECK = + index.txt + downloads.txt + README-website.txt + support.txt + source-highlight-filter.txt + music-filter.txt + +# Accompanying documents in DOCS_DIR. +DOCS_ROOT = + asciidoc + asciidoc.1 +DOCS = + $*(DOCS_ROOT).txt + $*(DOCS_ROOT).html + $*(DOCS_ROOT).css-embedded.html + $*(DOCS_ROOT).xml + asciidoc.pdf + asciidoc.1 + article.txt article.html + book.txt book.html + book-multi.txt book-multi.html + docbook-xsl.css + asciidoc.chm + article.pdf + +# Client applications. +@if OSTYPE == 'posix': + ASCIIDOC = `program_path("asciidoc")` + @if not ASCIIDOC: + :print ERROR: asciidoc(1) not found + :exit + TAR = `program_path("tar")` + ASPELL = `program_path("aspell")` +@else: + :print ERROR: Unsupported operating system $OSTYPE + :exit + +:syseval which xmllint | :assign XMLLINT # Validates XML. + +# AsciiDoc options to generate documentation HTML. +ASCIIDOC_HTML = + asciidoc --unsafe -b xhtml11 -f $(LAYOUT).conf -a icons -a badges -a revision=$(VERS)@ -a date="$(DATE)@" +@if LAYOUT == 'layout2': + ASCIIDOC_HTML += -a quirks! + +: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 == 'asciimath.html': + opts = -a asciimath + @elif target == 'latexmath.html': + opts = -a latexmath + @else: + opts = + @if target in ('index.html','INSTALL.html','downloads.html','manpage.html','a2x.1.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 + +all: $(WEB_PAGES) + +copy: all + # Copy to local web page. + :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/asciidoc-$(VERS).tar.gz $LOCAL_WEB + :sys cp $PROJ_DIR/asciidoc-$(VERS).zip $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 music?.* $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 diff --git a/main.aap b/main.aap new file mode 100644 index 0000000..c89e620 --- /dev/null +++ b/main.aap @@ -0,0 +1,43 @@ +##################################################################### +# +# A-A-P file for making AsciiDoc. +# (you can obtain A-A-P from http://www.a-a-p.org) +# +# Stuart Rackham <srackham@methods.co.nz> +##################################################################### + +VERS = 8.2.4 + +all: docs distribution + +docs: + :execute ./doc/main.aap + +distribution: docs + # Make tarball of all files in MANIFEST. + :syseval pwd | :assign WD + :sys cd .. && ln -s $(WD) asciidoc-$(VERS) + :sys cd .. && tar -czf $(WD)/asciidoc-$(VERS).tar.gz \ + ``sed s:^:asciidoc-$(VERS)/: $(WD)/MANIFEST`` + :sys cd .. && rm -f asciidoc-$VERS + # Make zip file. + ZIP = `program_path("zip")` + @if ZIP: + :sys rm -f asciidoc-$(VERS).zip + :sys ls ``cat MANIFEST`` | $ZIP asciidoc-$(VERS).zip -@ + # Zip files don't know about symlinks so just duplicate the + # files. + :sys $ZIP asciidoc-$(VERS).zip \ + doc/images/tiger.png \ + doc/images/smallnew.png \ + doc/images/icons/README \ + doc/images/icons/*.png \ + doc/images/icons/callouts/*.png \ + examples/website/images/tiger.png \ + examples/website/images/highlighter.png \ + examples/website/images/smallnew.png \ + examples/website/images/icons/README \ + examples/website/images/icons/*.png \ + examples/website/images/icons/callouts/*.png + @else: + :print WARNING: zip(1) unavailable, skipping zip file creation |