From 97ee2d23d05e2827c56d67bb978493bb0fa5dc87 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 20 Jan 2015 11:02:56 +0100 Subject: [doc] Use Ledger_VERSION_* make variables for version [ci skip] --- doc/CMakeLists.txt | 4 ++++ doc/ledger3.texi | 3 ++- doc/version.texi.in | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 doc/version.texi.in (limited to 'doc') 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} + -- cgit v1.2.3