Skip to content
Permalink
Browse files

Update man page creation

- add new man pages
- register new installation directory for section 7

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
  • Loading branch information...
lauft committed Feb 15, 2019
1 parent 4c19a05 commit e53e92f44867fdbb9caaa8f3bf3feda6a2dfbb6d
Showing with 44 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
  2. +2 −0 INSTALL
  3. +40 −0 doc/CMakeLists.txt
@@ -30,9 +30,11 @@ set (PACKAGE_STRING "${PACKAGE} ${VERSION}")
if (FREEBSD OR DRAGONFLY)
SET (TIMEW_MAN1DIR man/man1 CACHE STRING "Installation directory for man pages, section 1")
SET (TIMEW_MAN5DIR man/man5 CACHE STRING "Installation directory for man pages, section 5")
SET (TIMEW_MAN7DIR man/man7 CACHE STRING "Installation directory for man pages, section 7")
else (FREEBSD OR DRAGONFLY)
SET (TIMEW_MAN1DIR share/man/man1 CACHE STRING "Installation directory for man pages, section 1")
SET (TIMEW_MAN5DIR share/man/man5 CACHE STRING "Installation directory for man pages, section 5")
SET (TIMEW_MAN7DIR share/man/man7 CACHE STRING "Installation directory for man pages, section 7")
endif (FREEBSD OR DRAGONFLY)
SET (TIMEW_DOCDIR share/doc/timew CACHE STRING "Installation directory for doc files")

@@ -66,6 +66,7 @@ The following table lists them and their defaults plus the `CMAKE_INSTALL_PREFIX
TIMEW_RCDIR share/doc/timew/rc
TIMEW_MAN1DIR share/man/man1
TIMEW_MAN5DIR share/man/man5
TIMEW_MAN7DIR share/man/man7

The corresponding `TIMEW_*` variables will be combined with `CMAKE_INSTALL_PREFIX` to get absolute installation directories:

@@ -74,6 +75,7 @@ The corresponding `TIMEW_*` variables will be combined with `CMAKE_INSTALL_PREFI
CMAKE_INSTALL_PREFIX/TIMEW_RCDIR /usr/local/share/doc/timew/rc
CMAKE_INSTALL_PREFIX/TIMEW_MAN1DIR /usr/local/share/man/man1
CMAKE_INSTALL_PREFIX/TIMEW_MAN5DIR /usr/local/share/man/man5
CMAKE_INSTALL_PREFIX/TIMEW_MAN7DIR /usr/local/share/man/man7


# Updating Timewarrior build
@@ -6,5 +6,45 @@ add_subdirectory (holidays)
add_subdirectory (themes)

configure_file (man/timew.1.in man/timew.1)
configure_file (man/timew-annotate.1.in man/timew-annotate.1)
configure_file (man/timew-cancel.1.in man/timew-cancel.1)
configure_file (man/timew-config.1.in man/timew-config.1)
configure_file (man/timew-continue.1.in man/timew-continue.1)
configure_file (man/timew-day.1.in man/timew-day.1)
configure_file (man/timew-delete.1.in man/timew-delete.1)
configure_file (man/timew-diagnostics.1.in man/timew-diagnostics.1)
configure_file (man/timew-export.1.in man/timew-export.1)
configure_file (man/timew-extensions.1.in man/timew-extensions.1)
configure_file (man/timew-fill.1.in man/timew-fill.1)
configure_file (man/timew-gaps.1.in man/timew-gaps.1)
configure_file (man/timew-get.1.in man/timew-get.1)
configure_file (man/timew-help.1.in man/timew-help.1)
configure_file (man/timew-join.1.in man/timew-join.1)
configure_file (man/timew-lengthen.1.in man/timew-lengthen.1)
configure_file (man/timew-modify.1.in man/timew-modify.1)
configure_file (man/timew-month.1.in man/timew-month.1)
configure_file (man/timew-move.1.in man/timew-move.1)
configure_file (man/timew-report.1.in man/timew-report.1)
configure_file (man/timew-resize.1.in man/timew-resize.1)
configure_file (man/timew-shorten.1.in man/timew-shorten.1)
configure_file (man/timew-show.1.in man/timew-show.1)
configure_file (man/timew-split.1.in man/timew-split.1)
configure_file (man/timew-start.1.in man/timew-start.1)
configure_file (man/timew-stop.1.in man/timew-stop.1)
configure_file (man/timew-summary.1.in man/timew-summary.1)
configure_file (man/timew-tag.1.in man/timew-tag.1)
configure_file (man/timew-tags.1.in man/timew-tags.1)
configure_file (man/timew-track.1.in man/timew-track.1)
configure_file (man/timew-undo.1.in man/timew-undo.1)
configure_file (man/timew-untag.1.in man/timew-untag.1)
configure_file (man/timew-week.1.in man/timew-week.1)

configure_file (man/timew-config.7.in man/timew-config.7)
configure_file (man/timew-dates.7.in man/timew-dates.7)
configure_file (man/timew-dom.7.in man/timew-dom.7)
configure_file (man/timew-durations.7.in man/timew-durations.7)
configure_file (man/timew-hints.7.in man/timew-hints.7)
configure_file (man/timew-ranges.7.in man/timew-ranges.7)

install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man/ DESTINATION ${TIMEW_MAN1DIR} FILES_MATCHING PATTERN "*.1")
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man/ DESTINATION ${TIMEW_MAN7DIR} FILES_MATCHING PATTERN "*.7")

0 comments on commit e53e92f

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.