summaryrefslogtreecommitdiff
path: root/doc/cs
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-03-11 09:59:39 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-03-11 09:59:39 +0100
commit805717e9ec3f66c960928bca607eceb871438fae (patch)
treec1832f0815bd8ade4530ed3948f55f0672103184 /doc/cs
parent0126b03f47db7f7842aff497cdbb0e41a0a5be0a (diff)
downloadweechat-805717e9ec3f66c960928bca607eceb871438fae.zip
core: add binary weechat-headless to run WeeChat without interface (closes #1120)
The optional command line option "--daemon" runs WeeChat like a daemon (fork, new process group, file descriptors closed).
Diffstat (limited to 'doc/cs')
-rw-r--r--doc/cs/CMakeLists.txt16
-rw-r--r--doc/cs/cmdline_options.cs.adoc5
-rw-r--r--doc/cs/weechat.1.cs.adoc6
3 files changed, 26 insertions, 1 deletions
diff --git a/doc/cs/CMakeLists.txt b/doc/cs/CMakeLists.txt
index 9e81542be..db441959b 100644
--- a/doc/cs/CMakeLists.txt
+++ b/doc/cs/CMakeLists.txt
@@ -28,8 +28,22 @@ if(ENABLE_MAN)
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat.1 (cs)"
)
- add_custom_target(doc-man-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
+ add_custom_target(doc-man-weechat-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/cs/man1)
+
+ # symbolic link weechat-headless.1 -> weechat.1
+ add_custom_command(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
+ COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
+ COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.cs.adoc
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ COMMENT "Creating symbolic link weechat-headless.1 (cs)"
+ )
+ add_custom_target(doc-man-weechat-headless-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/cs/man1)
endif()
if(ENABLE_DOC)
diff --git a/doc/cs/cmdline_options.cs.adoc b/doc/cs/cmdline_options.cs.adoc
index 286b8738b..3711df278 100644
--- a/doc/cs/cmdline_options.cs.adoc
+++ b/doc/cs/cmdline_options.cs.adoc
@@ -4,6 +4,11 @@
*-c*, *--colors*::
Zobraz defaultní barvy v terminálu.
+// TRANSLATION MISSING
+*--daemon*::
+ Run WeeChat in background, as a daemon (works only with the command
+ *weechat-headless*).
+
*-d*, *--dir* _<path>_::
Nastav cestu jako dovmský adresář pro WeeChat (použitou pro konfigurační
soubory, logy, uživatelské pluginy a skripty), výchozí hodnota je
diff --git a/doc/cs/weechat.1.cs.adoc b/doc/cs/weechat.1.cs.adoc
index 03de6ad29..e87441d5c 100644
--- a/doc/cs/weechat.1.cs.adoc
+++ b/doc/cs/weechat.1.cs.adoc
@@ -20,12 +20,18 @@ weechat - the extensible chat client
*weechat* [-l|--license]
*weechat* [-v|--version]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+
== POPIS
WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient.
Je lehký, plně konfigurovatelný a lehce rozšiřitelný pomocí pluginů a scriptů
v obvyklých sciptovacích jazycích.
+// TRANSLATION MISSING
+The command *weechat-headless* runs WeeChat in a headless mode (no interface).
+It can be used for tests or to daemonize WeeChat with the option "--daemon".
+
== VOLBY