[doc] Use Ledger_VERSION_* make variables for version
[ci skip]
This commit is contained in:
parent
af7e7cdd8f
commit
97ee2d23d0
3 changed files with 14 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
8
doc/version.texi.in
Normal file
8
doc/version.texi.in
Normal file
|
|
@ -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}
|
||||
|
||||
Loading…
Add table
Reference in a new issue