diff options
-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} + |