diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2010-11-14 13:53:44 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2010-11-14 13:53:44 +1300 |
commit | c6c7ccb5df46a76833edebce0529823194f69b43 (patch) | |
tree | 51300f845b1d7dcf341e78458aa5848842521bd1 | |
parent | 2e483a0e73ce2fee7a12700b0cdbfd20a7eebde3 (diff) | |
download | asciidoc-py3-8.6.3.tar.gz |
Propagate version number in `common.aap` to other versioned files. See:8.6.3
http://groups.google.com/group/asciidoc/browse_thread/thread/c21c2902c29bae64
-rw-r--r-- | main.aap | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -13,6 +13,17 @@ 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.]\+/$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 @@ -23,7 +34,7 @@ docs: website: :execute ./examples/website/main.aap -distribution: docs website +distribution: vers_update docs website NAME = asciidoc-$(VERS) # Make configure script. :sys autoconf |