source: rtems-source-builder/source-builder/sb/asciidoc/main.aap @ 0464153

4.104.114.95
Last change on this file since 0464153 was 0464153, checked in by Chris Johns <chrisj@…>, on 03/03/13 at 04:58:11

Change asciidoc to the 8.6.4 release package because Windows was broken.

  • Property mode set to 100644
File size: 2.7 KB
Line 
1#####################################################################
2#
3# A-A-P file for making AsciiDoc distribution.
4# (you can obtain A-A-P from http://www.a-a-p.org)
5#
6# Stuart Rackham <srackham@gmail.com>
7#####################################################################
8
9:execute ./common.aap
10
11all: distribution
12
13vers:
14    :print Version: $VERS (released $DATE)
15
16vers_update:
17    # Propagate version number in common.aap to other versioned files.
18    :syseval grep "$$VERSION = '$(VERS)'" asciidoc.py | :assign dummy
19    @if exit != 0:
20        :print updating version numbers...
21        @for (fname,match) in (('asciidoc.py',r'^VERSION = '),('a2x.py',r'^VERSION = '),('configure.ac',r'^AC_INIT\(.*\)')):
22            :sys sed '/$match/ s/[0-9.][0-9.a-zA-Z_]\+/$VERS/' <$fname >$(fname).tmp
23            :sys mv -f $(fname).tmp $fname
24            @if fname in ('asciidoc.py','a2x.py'):
25                :sys chmod +x $fname
26
27tags:
28    :sys rm -f tags
29    :sys ctags asciidoc.py asciidocapi.py tests/testasciidoc.py
30
31docs:
32    :execute ./doc/main.aap
33
34website:
35    :execute ./examples/website/main.aap
36
37distribution: vers_update docs website
38    NAME = asciidoc-$(VERS)
39    # Make configure script.
40    :sys autoconf
41    :sys ln -s . $(NAME)
42    # Make tarball of all files in MANIFEST.
43    :sys tar -czf $(NAME).tar.gz \
44        ``sed s:^:$(NAME)/: MANIFEST``
45    # Make zip file.
46    ZIP = `program_path("zip")`
47    @if ZIP:
48        :sys rm -f $(NAME).zip
49        :sys ls ``sed s:^:$(NAME)/: MANIFEST`` | $ZIP $(NAME).zip -@
50        # Zip files don't know about symlinks so just duplicate the
51        # files.
52        :sys $ZIP $(NAME).zip \
53                $(NAME)/doc/images/tiger.png \
54                $(NAME)/doc/images/smallnew.png \
55                $(NAME)/doc/images/icons/README \
56                $(NAME)/doc/images/icons/*.png \
57                $(NAME)/doc/images/icons/callouts/*.png \
58                $(NAME)/examples/website/images/tiger.png \
59                $(NAME)/examples/website/images/highlighter.png \
60                $(NAME)/examples/website/images/smallnew.png \
61                $(NAME)/examples/website/images/icons/README \
62                $(NAME)/examples/website/images/icons/*.png \
63                $(NAME)/examples/website/images/icons/callouts/*.png
64        :sys rm -f $(NAME)
65    @else:
66        :print WARNING: zip(1) unavailable, skipping zip file creation
67    :sys rm -f $(NAME)
68
69test:
70    :sys python ./asciidoc.py --doctest
71    :sys python ./asciidocapi.py
72    :execute ./doc/main.aap test
73    :syseval ls ./tests/data/*.html | :assign TESTFILES
74    @if _no.TESTFILES:
75        :sys python ./tests/testasciidoc.py run
76    @else:
77        :print WARNING: no test files, run './tests/testasciidoc.py update'
Note: See TracBrowser for help on using the repository browser.