Add first version of gnucash-cli manpage

Note manpages for both gnucash and gnucash-cli need revision.
They refer to outdated files and environment variables, and
some more recent command line options are missing.
This commit is contained in:
Geert Janssens 2020-06-05 20:32:14 +02:00
parent 769196fec6
commit 153ee8871a
2 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,10 @@
# by the calling code:
# - SRC_DIR (top level source code directory)
# - SRC (full path to gnc-vcs-info.h.in)
# - DST (full path to destination for gnc-vcs-info.h)
# - DST (name of the manpage to generate)
# - VCS_INFO_FILE (full path to gnc-vcs-info.h - can be in source tree (release builds) or build tree (git builds))
include (${SRC_DIR}/cmake/version-info2env.cmake)
versioninfo2env (${VCS_INFO_FILE})
configure_file(${SRC} ${DST} )
configure_file(gnucash.1 ${DATADIR_BUILD}/gnucash/gnucash.1 COPYONLY)
configure_file(${DST} ${DATADIR_BUILD}/gnucash/${DST} COPYONLY)

View File

@ -53,6 +53,6 @@ foreach (manpage gnucash gnucash-cli)
)
add_custom_target(${manpage}-manpage DEPENDS ${manpage}.1)
dist_add_generated (${BUILDING_FROM_VCS} ${manpage}.1)
endforeach()
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gnucash.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gnucash.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endforeach()