diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-01-20 11:02:56 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-01-20 11:02:56 +0100 |
commit | 97ee2d23d05e2827c56d67bb978493bb0fa5dc87 (patch) | |
tree | bf6c866bf1df4ad7e4d78fda7c1aa2892966857d | |
parent | af7e7cdd8f35b9c1b2a428ff8c6686e5b36a213a (diff) | |
download | fork-ledger-97ee2d23d05e2827c56d67bb978493bb0fa5dc87.tar.gz fork-ledger-97ee2d23d05e2827c56d67bb978493bb0fa5dc87.tar.bz2 fork-ledger-97ee2d23d05e2827c56d67bb978493bb0fa5dc87.zip |
[doc] Use Ledger_VERSION_* make variables for version
[ci skip]
-rw-r--r-- | doc/CMakeLists.txt | 4 | ||||
-rw-r--r-- | doc/ledger3.texi | 3 | ||||
-rw-r--r-- | doc/version.texi.in | 8 |
3 files changed, 14 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 46c3f73f..e463c721 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -5,6 +5,10 @@ ######################################################################## +configure_file( + ${PROJECT_SOURCE_DIR}/doc/version.texi.in + ${PROJECT_BINARY_DIR}/doc/version.texi) + if (USE_DOXYGEN) find_package(Doxygen) if (NOT DOXYGEN_FOUND) diff --git a/doc/ledger3.texi b/doc/ledger3.texi index 81d1849f..5306d1f4 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -1,6 +1,7 @@ \input texinfo @c -*-texinfo-*- @setfilename ledger3.info +@include version.texi @settitle Ledger: Command-Line Accounting @c Before release, run C-u C-c C-u C-a (texinfo-all-menus-update with @@ -146,7 +147,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @titlepage @title Ledger: Command-Line Accounting -@subtitle For Version 3.1 of Ledger +@subtitle For Version @value{VERSION} of Ledger @author John Wiegley @page @vskip 0pt plus 1filll diff --git a/doc/version.texi.in b/doc/version.texi.in new file mode 100644 index 00000000..c477db70 --- /dev/null +++ b/doc/version.texi.in @@ -0,0 +1,8 @@ +@set Ledger_VERSION_MAJOR @Ledger_VERSION_MAJOR@ +@set Ledger_VERSION_MINOR @Ledger_VERSION_MINOR@ +@set Ledger_VERSION_PATCH @Ledger_VERSION_PATCH@ +@set Ledger_VERSION_PRERELEASE @Ledger_VERSION_PRERELEASE@ +@set Ledger_VERSION_DATE @Ledger_VERSION_DATE@ + +@set VERSION @value{Ledger_VERSION_MAJOR}.@value{Ledger_VERSION_MINOR}.@value{Ledger_VERSION_PATCH}@value{Ledger_VERSION_PRERELEASE} + |