Add man pages (Resolves: rhbz#949424)

Signed-off-by: Mikolaj Izdebski <mizdebsk@redhat.com>
This commit is contained in:
Michal Srb 2013-04-11 13:22:25 +02:00 committed by Mikolaj Izdebski
parent 09facf5dbd
commit 6f20bd9deb
4 changed files with 209 additions and 1 deletions

View File

@ -0,0 +1,66 @@
.TH XML-RESOLVER 1 "11 April 2013" "xml-commons-resolver" "User commands"
.SH NAME
xml-resolver - A simple command-line resolver
.SH SYNOPSIS
.B xml-resolver
[options] keyword
.SH DESCRIPTION
\fBxml-resolver\fP is a simple command-line resolver. It takes some parameters
and passes them through the resolver, printing the result.
The process ends with error-level 1, if there were errors.
.SH OPTIONS
Command-line options are described below.
.PP
.B -c
catalogfile
.RS 4
Load a particular catalog file
.RE
.PP
.B -n
name
.RS 4
Sets the name
.RE
.PP
.B -p
publicId
.RS 4
Sets the public identifier
.RE
.PP
.B -s
systemId
.RS 4
Sets the system identifier
.RE
.PP
.B -a
.RS 4
Absolute system URI
.RE
.PP
.B -u
uri
.RS 4
Sets the URI
.RE
.PP
.B -d
integer
.RS 4
Set the debug level
.RE
And keyword is one of: doctype, document, entity, notation, public,
system, or uri.

View File

@ -0,0 +1,62 @@
.TH XML-XPARSE 1 "11 April 2013" "xml-commons-resolver" "User commands"
.SH NAME
xml-xparse - A simple command-line XML parsing application
.SH SYNOPSIS
.B xml-xparse
[options] document.xml
.SH DESCRIPTION
\fBxml-xparse\fP is a simple command-line XML Parser. It's just a little
wrapper around the JAXP Parser with support for catalogs.
The process ends with error-level 1, if there were errors.
.SH OPTIONS
Command-line options are described below.
.PP
.B -c
catalogfile
.RS 4
Load a particular catalog file
.RE
.PP
.B -w
.RS 4
Perform a well-formed parse, not a validating parse
.RE
.PP
.B -v
(default)
.RS 4
Perform a validating parse
.RE
.PP
.B -n
.RS 4
Perform a namespace-ignorant parse
.RE
.PP
.B -N
(default)
.RS 4
Perform a namespace-aware parse
.RE
.PP
.B -d
integer
.RS 4
Set the debug level. Warnings are shown if the debug level is > 2
.RE
.PP
.B -E
integer
.RS 4
Set the maximum number of errors to display
.RE

View File

@ -0,0 +1,67 @@
.TH XML-XREAD 1 "11 April 2013" "xml-commons-resolver" "User commands"
.SH NAME
xml-xread - A simple command-line XML parsing application
.SH SYNOPSIS
.B xml-xread
[options] document.xml
.SH DESCRIPTION
\fBxml-xread\fP is a simple command-line XML Parser. It's just a little
wrapper around the JAXP XMLReader with support for catalogs.
The process ends with error-level 1, if there were errors.
.SH OPTIONS
Command-line options are described below.
.PP
.B -c
catalogfile
.RS 4
Load a particular catalog file
.RE
.PP
.B -w
.RS 4
Perform a well-formed parse, not a validating parse
.RE
.PP
.B -v
(default)
.RS 4
Perform a validating parse
.RE
.PP
.B -s
.RS 4
Enable W3C XML Schema validation
.RE
.PP
.B -n
.RS 4
Perform a namespace-ignorant parse
.RE
.PP
.B -N
(default)
.RS 4
Perform a namespace-aware parse
.RE
.PP
.B -d
integer
.RS 4
Set the debug level. Warnings are shown if the debug level is > 2
.RE
.PP
.B -E
integer
.RS 4
Set the maximum number of errors to display
.RE

View File

@ -1,6 +1,6 @@
Name: xml-commons-resolver
Version: 1.2
Release: 11%{?dist}
Release: 12%{?dist}
Epoch: 0
Summary: Resolver subproject of xml-commons
License: ASL 2.0
@ -11,6 +11,9 @@ Source2: xml-commons-resolver-xread.sh
Source3: xml-commons-resolver-xparse.sh
Source4: %{name}-MANIFEST.MF
Source5: %{name}-pom.xml
Source6: %{name}-resolver.1
Source7: %{name}-xparse.1
Source8: %{name}-xread.1
Requires: xml-commons-apis
Requires: jpackage-utils
@ -75,6 +78,12 @@ cp %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xml-resolver
cp %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/xml-xread
cp %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/xml-xparse
# Man pages
install -d -m 755 ${RPM_BUILD_ROOT}%{_mandir}/man1
install -p -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-resolver.1
install -p -m 644 %{SOURCE7} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xparse.1
install -p -m 644 %{SOURCE8} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xread.1
# Pom
install -pD -T -m 644 %{SOURCE5} %{buildroot}%{_mavenpomdir}/JPP-xml-resolver.pom
%add_to_maven_depmap xml-resolver xml-resolver %{version} JPP xml-resolver
@ -94,6 +103,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mavendepmapfragdir}/*
%{_mavenpomdir}/*
%{_javadir}/*
%{_mandir}/man1/*
%attr(0755,root,root) %{_bindir}/*
%files javadoc
@ -102,6 +112,9 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE.resolver.txt
%changelog
* Thu Apr 11 2013 Michal Srb <msrb@redhat.com> - 0:1.2-12
- Add man pages (Resolves: rhbz#949424)
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild