-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use asciidoc for manpages, instead of docbook
This is the same like the matching Icecream commit.
- Loading branch information
Showing
6 changed files
with
83 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
# It's not possible to install the docbook right now (Qt-only project) | ||
#add_subdirectory(icemon) | ||
|
||
if(DOCBOOK_TO_MAN_EXECUTABLE) | ||
install_docbook_man_page(icemon 1) | ||
find_program(ASCIIDOC asciidoc) | ||
find_program(A2X a2x) | ||
|
||
if(NOT ASCIIDOC OR NOT A2X) | ||
message(WARNING "Could not find asciidoc or a2x, manual page will not be generated.") | ||
else() | ||
add_custom_target(manpage ALL) | ||
add_custom_command( | ||
TARGET manpage | ||
COMMAND ${ASCIIDOC} -a revnumber=${PROJECT_VERSION} -d manpage -b docbook | ||
-o ${CMAKE_CURRENT_BINARY_DIR}/icemon.xml ${CMAKE_CURRENT_SOURCE_DIR}/icemon.adoc | ||
MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/icemon.adoc | ||
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/icemon.xml) | ||
add_custom_command( | ||
TARGET manpage | ||
COMMAND ${A2X} --doctype manpage --format manpage | ||
${CMAKE_CURRENT_BINARY_DIR}/icemon.xml | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
MAIN_DEPENDENCY ${CMAKE_CURRENT_BINARY_DIR}/icemon.xml | ||
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/icemon.1) | ||
install( | ||
FILES ${CMAKE_CURRENT_BINARY_DIR}/icemon.1 | ||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
ICEMON(1) | ||
========= | ||
:doctype: manpage | ||
:man source: icemon | ||
:man version: {revnumber} | ||
:man manual: Icemon User's Manual | ||
|
||
|
||
Name | ||
---- | ||
icemon - Icecream network monitor | ||
|
||
|
||
Synopsis | ||
-------- | ||
*icemon* _OPTION_ | ||
|
||
|
||
Description | ||
----------- | ||
Icemon is a graphical application to view an Icecream compile network and monitor its traffic. | ||
|
||
|
||
|
||
Options | ||
------- | ||
|
||
*-h, --help*:: | ||
Print help message and exit. | ||
|
||
*-n, --netname* _net-name_:: | ||
The name of the Icecream network `icemon` should connect to. | ||
|
||
*-s, --scheduler* _host-name_:: | ||
The hostname of the Icecream scheduler `icemon` should connect to. | ||
|
||
|
||
|
||
See Also | ||
-------- | ||
ifdef::env-github[] | ||
link:https://github.com/icecc/icecream/tree/master/doc/icecream.adoc[icecream(7)] | ||
link:https://github.com/icecc/icecream/tree/master/doc/icecc-scheduler.adoc[icecc-scheduler(1)] | ||
link:https://github.com/icecc/icecream/tree/master/doc/iceccd.adoc[iceccd(1)] | ||
endif::[] | ||
|
||
ifndef::env-github[] | ||
icecream(7), icecc-scheduler(1), iceccd(1) | ||
endif::[] | ||
|
||
|
||
Website | ||
------- | ||
Project home: https://github.com/icecc/icemon |
This file was deleted.
Oops, something went wrong.