From 15561dbfe57956765b8fcad15183805251d51f24 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 25 Mar 2014 08:24:19 -0400 Subject: [PATCH] Add basic man page --- .gitignore | 2 + Makefile-man.am | 32 ++++++++++++++ Makefile.am | 1 + man/rpm-ostree.xml | 103 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 Makefile-man.am create mode 100644 man/rpm-ostree.xml diff --git a/.gitignore b/.gitignore index d51e7e51..b2db5663 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,5 @@ rpm-ostree-autobuilder rpm-ostree-*.tar.xz rpm-ostree-*.rpm + +rpm-ostree.1 diff --git a/Makefile-man.am b/Makefile-man.am new file mode 100644 index 00000000..9ab5e6db --- /dev/null +++ b/Makefile-man.am @@ -0,0 +1,32 @@ +# Copyright (C) 2014 Colin Walters +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library 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 +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +man1_MANS = rpm-ostree.1 + +XSLTPROC_FLAGS = \ + --nonet \ + --stringparam man.output.quietly 1 \ + --stringparam funcsynopsis.style ansi \ + --stringparam man.th.extra1.suppress 1 \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 + +XSLTPROC_FLAGS_MAN = \ + $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl + +rpm-ostree.1: man/rpm-ostree.xml Makefile + $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS_MAN) $< diff --git a/Makefile.am b/Makefile.am index 9da9b123..afcc0cee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,4 +29,5 @@ AM_CFLAGS += $(WARN_CFLAGS) EXTRA_DIST += autogen.sh COPYING include Makefile-rpm-ostree.am +include Makefile-man.am include Makefile-autobuilder.am diff --git a/man/rpm-ostree.xml b/man/rpm-ostree.xml new file mode 100644 index 00000000..b7efae7e --- /dev/null +++ b/man/rpm-ostree.xml @@ -0,0 +1,103 @@ + + + + + + + + + rpm-ostree + rpm-ostree + + + + Developer + Colin + Walters + walters@redhat.com + + + + + + rpm-ostree + 1 + + + + rpm-ostree + Operating system upgrade and software management tool + + + + + rpm-ostree COMMAND OPTIONS + + + + + Description + + + rpm-ostree is a system software management tool that + combines features of both traditional RPM and + OSTree. On an rpm-ostree managed system, the rpm + tool may be used to query software state, but is not + capable of performing changes. + + + + + Options + + + + upgrade + + Download the latest + version of the current tree, and + deploy it, setting it up as the + default for the next boot. At + present, no changes are made live; you + must reboot for the changes to take + effect. + + + + + + + Exit status + + On success 0 is returned, a non-zero failure + code otherwise. + + + + See Also + + + ostree1, + rpm8 + + + +