summaryrefslogtreecommitdiff
path: root/main.aap
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2010-08-16 12:25:11 +1200
committerStuart Rackham <srackham@methods.co.nz>2010-08-16 12:25:11 +1200
commit5175f549c6301f2b8328b3ba27662462bea096f4 (patch)
tree7f0e88e178ef4818affbd5b8618e6d7989b3a09e /main.aap
parentbdc4872f65d25961abd702bdc83b1d7c2e0ca30f (diff)
downloadasciidoc-5175f549c6301f2b8328b3ba27662462bea096f4.tar.gz
- Moved examples/oldtables.txt to tests data.
- Documented distribution build. - Documentation updates. - Dropped unnecessary --safe options from tests configuration file. - Warn if aap test is run before the test files have been built.
Diffstat (limited to 'main.aap')
-rw-r--r--main.aap14
1 files changed, 10 insertions, 4 deletions
diff --git a/main.aap b/main.aap
index e7a5f36..6ee30f5 100644
--- a/main.aap
+++ b/main.aap
@@ -27,15 +27,13 @@ distribution: docs website
NAME = asciidoc-$(VERS)
# Make configure script.
:sys autoconf
- # Make tarball of all files in MANIFEST.
:sys ln -s . $(NAME)
+ # Make tarball of all files in MANIFEST.
:sys tar -czf $(NAME).tar.gz \
``sed s:^:$(NAME)/: MANIFEST``
- :sys rm -f asciidoc-$VERS
# Make zip file.
ZIP = `program_path("zip")`
@if ZIP:
- :sys ln -s . $(NAME)
: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
@@ -52,9 +50,17 @@ distribution: docs website
$(NAME)/examples/website/images/icons/README \
$(NAME)/examples/website/images/icons/*.png \
$(NAME)/examples/website/images/icons/callouts/*.png
- :sys rm -f asciidoc-$VERS
+ :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'