Motivation:
1. The copyright notice in each source file refers to doc/AUTHORS.adoc
for the list of contributors. If we only update AUTHORS.adoc when
generating documention then AUTHORS.adoc will become more and more
out of date until somebody remembers to commit the changes.
2. The list is based on commit authors, but authors may sometimes need
an entry in .mailmap so there’s manual work involved to sanity check
the list. It can also happen that some commits or authors may need to
be excluded.
Therefore I prefer to keep AUTHORS.adoc manually updated at release time
(or occasionally more often) with the help of a script just like before.
include(GNUInstallDirs)
install(TARGETS ccache DESTINATION ${CMAKE_INSTALL_BINDIR})
-# before adding documentation to package run misc/update_authors.sh
-#
-# install(TARGETS documentation DESTINATION ${CMAKE_INSTALL_DOCDIR})
-
#
# packaging
#
add_custom_command (
TARGET documentation
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/doc"
- COMMAND misc/update_authors.sh
BYPRODUCTS "doc"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)