mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
769196fec6
commit
153ee8871a
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user