diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2012-01-24 02:57:43 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2012-01-24 02:57:43 +0100 |
commit | 7150074f3a186082cf1aca4cf722bf302469f781 (patch) | |
tree | a8e2bf45aef66f1bb5a68e7f9637f9fa15b4ee2a | |
parent | f38075dfcef4a223e2163ce53f3f398879ee818e (diff) |
add man page
-rw-r--r-- | Makefile.am | 22 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | man/systemadm.xml | 111 |
3 files changed, 136 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 9cbecc66..c34cda3a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -84,6 +84,28 @@ CLEANFILES += \ ${systemadm_SOURCES:.vala=.c} endif +dist_man_MANS = \ + man/systemadm.1 + +EXTRA_DIST += \ + man/systemadm.xml + +if HAVE_XSLTPROC +XSLTPROC_FLAGS = \ + --nonet \ + --stringparam funcsynopsis.style ansi + +XSLTPROC_PROCESS_MAN = \ + $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + +man/%.1: man/%.xml + $(XSLTPROC_PROCESS_MAN) + +CLEANFILES += \ + $(dist_man_MANS) +endif + install-exec-hook: $(INSTALL_EXEC_HOOKS) uninstall-hook: $(UNINSTALL_EXEC_HOOKS) install-data-hook: $(INSTALL_DATA_HOOKS) diff --git a/configure.ac b/configure.ac index e41c921f..3b269741 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,9 @@ AC_PROG_CC_C99 AM_PROG_CC_C_O AC_PROG_GCC_TRADITIONAL +AC_PATH_PROG([XSLTPROC], [xsltproc]) +AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x) + CC_CHECK_CFLAGS_APPEND([ \ -pipe \ -Wall \ diff --git a/man/systemadm.xml b/man/systemadm.xml new file mode 100644 index 00000000..cefc3009 --- /dev/null +++ b/man/systemadm.xml @@ -0,0 +1,111 @@ +<?xml version='1.0'?> <!--*-nxml-*--> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> + +<!-- + This file is part of systemd. + + Copyright 2010 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. +--> + +<refentry id="systemadm"> + + <refentryinfo> + <title>systemadm</title> + <productname>systemd</productname> + + <authorgroup> + <author> + <contrib>Developer</contrib> + <firstname>Lennart</firstname> + <surname>Poettering</surname> + <email>lennart@poettering.net</email> + </author> + </authorgroup> + </refentryinfo> + + <refmeta> + <refentrytitle>systemadm</refentrytitle> + <manvolnum>1</manvolnum> + </refmeta> + + <refnamediv> + <refname>systemadm</refname> + <refpurpose>Graphical frontend for the systemd system + and service manager</refpurpose> + </refnamediv> + + <refsynopsisdiv> + <cmdsynopsis> + <command>systemadm <arg choice="opt" rep="repeat">OPTIONS</arg></command> + </cmdsynopsis> + </refsynopsisdiv> + + <refsect1> + <title>Description</title> + + <para><command>systemadm</command> is a graphical + frontend for the systemd system and service manager + and allows introspection and control of + systemd.</para> + </refsect1> + + <refsect1> + <title>Options</title> + + <para>The following options are understood:</para> + + <variablelist> + <varlistentry> + <term><option>--h</option></term> + <term><option>--help</option></term> + + <listitem><para>Prints a short help + text and exits.</para></listitem> + </varlistentry> + + + <varlistentry> + <term><option>--system</option></term> + + <listitem><para>Connect to the systemd + system + manager. (Default)</para></listitem> + </varlistentry> + + <varlistentry> + <term><option>--user</option></term> + + <listitem><para>Connect to the systemd + manager of the calling + user.</para></listitem> + </varlistentry> + + </variablelist> + + <para>In addition to this a number of parameters + common to all Gtk+ programs are supported.</para> + </refsect1> + + <refsect1> + <title>See Also</title> + <para> + <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, + <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> + </para> + </refsect1> + +</refentry> |