From 11b88aaf3d37b32d49d222b7209281a65b53569c Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 21 Jan 2019 01:07:04 +0100 Subject: [PATCH] Added files section to manpage. --- CMakeLists.txt | 7 ++++++- whyblocked.1.adoc | 10 +++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f31b5d..966b321 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,10 +53,15 @@ add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_PROJECT_NAME} whyblocked-gui) if(WITH_MAN) - add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD + add_custom_command( + OUTPUT "${PROJECT_BINARY_DIR}/whyblocked.1" WORKING_DIRECTORY "${PROJECT_BINARY_DIR}" + DEPENDS "${CMAKE_SOURCE_DIR}/whyblocked.1.adoc" COMMAND ${CMAKE_SOURCE_DIR}/build_manpage.sh ARGS ${PROJECT_VERSION}) + add_custom_target(run ALL + DEPENDS "${PROJECT_BINARY_DIR}/whyblocked.1" +) endif() install(TARGETS ${CMAKE_PROJECT_NAME} diff --git a/whyblocked.1.adoc b/whyblocked.1.adoc index c7707a2..cf99b81 100644 --- a/whyblocked.1.adoc +++ b/whyblocked.1.adoc @@ -1,7 +1,7 @@ = whyblocked(1) :Author: tastytea :Email: tastytea@tastytea.de -:Date: 2019-01-20 +:Date: 2019-01-21 :Revision: 0.0.0 :man source: Whyblocked :man version: {revision} @@ -24,6 +24,14 @@ Apart from the obvious method, you can add entries by dropping the link to a profile into the main window. In the "Add entry" dialog, you can add receipts by dropping links or text into the receipts list. +== FILES + +* Configuration file: `${XDG_CONFIG_HOME}/whyblocked.cfg` +* Database: `${XDG_DATA_HOME}/whyblocked/database.sqlite` + +`${XDG_CONFIG_HOME}` is usually `~/.config` and `${XDG_DATA_HOME}` is usually +`~/.local/share` + == REPORTING BUGS Bugtracker: https://schlomp.space/tastytea/whyblocked/issues