2018-11-05 15:10:30 +00:00
|
|
|
# Gets the date of the latest commit in the form YYYY-MM-DD
|
|
|
|
# This date is used in the man page
|
|
|
|
execute_process(COMMAND git log -1 --date=format:%Y-%m-%d --format=%cd
|
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
|
|
OUTPUT_VARIABLE LAST_COMMIT_DATE
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
set(MAN_PAGES_1 polybar.1)
|
2018-11-05 15:10:30 +00:00
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/${MAN_PAGES_1}.cmake
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/${MAN_PAGES_1}
|
|
|
|
ESCAPE_QUOTES @ONLY)
|
|
|
|
|
2016-12-23 17:10:19 +00:00
|
|
|
INSTALL(FILES ${MAN_PAGES_1}
|
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1
|
|
|
|
COMPONENT doc)
|