[tidy] man: add manual page for tab2space

Pavel Raiskup praiskup at fedoraproject.org
Thu Mar 28 07:32:00 UTC 2013


commit e8e69d48b7dc469ee9b61d7335b27555b0a01523
Author: Pavel Raiskup <praiskup at redhat.com>
Date:   Thu Mar 28 08:30:46 2013 +0100

    man: add manual page for tab2space
    
    Version: 0.99.0-28.20091203

 tab2space.1 |   39 +++++++++++++++++++++++++++++++++++++++
 tidy.spec   |    8 +++++++-
 2 files changed, 46 insertions(+), 1 deletions(-)
---
diff --git a/tab2space.1 b/tab2space.1
new file mode 100644
index 0000000..e537c58
--- /dev/null
+++ b/tab2space.1
@@ -0,0 +1,39 @@
+.TH TABS2SPACE "1" "March 2013" "tab2space" "User Commands"
+
+.SH NAME
+.B tab2space
+[\fIoptions\fR] [\fIinfile\fR [\fIoutfile\fR]] ...
+.SH DESCRIPTION
+.PP
+Utility to expand tabs and ensure consistent line endings options.
+.PP
+When the \fIinfile\fR is not specified or is set to \fI-\fR (dash) the input
+file is read from standard input.
+.PP
+This man page is rewritten from \fI\-help\fR output.
+
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-help\fR
+display the help message
+.TP
+\fB\-dos\fR, \fB\-crlf\fR
+set line ends to CRLF (PC-DOS/Windows - default)
+.TP
+\fB\-mac\fR, \fB\-cr\fR
+set line ends to CR (classic Mac OS)
+.TP
+\fB\-unix\fR, \fB\-lf\fR
+set line ends to LF (Unix)
+.TP
+\fB\-tabs\fR
+preserve tabs, e.g. for Makefile
+.TP
+\fB\-t\fR\fI<n>\fR
+set tabs to \fI<n>\fR (default is 4) spaces
+.TP
+Note this utility doesn't map spaces to tabs!
+
+.SH VERSION
+.B tab2space
+for 6th February 2003
diff --git a/tidy.spec b/tidy.spec
index dfddb65..c1ebef0 100644
--- a/tidy.spec
+++ b/tidy.spec
@@ -6,7 +6,7 @@
 Name:    tidy
 Summary: Utility to clean up and pretty print HTML/XHTML/XML
 Version: 0.99.0
-Release: 27.%{snap}%{?dist}
+Release: 28.%{snap}%{?dist}
 
 Group:   Applications/Text
 License: W3C
@@ -14,6 +14,7 @@ URL:     http://tidy.sourceforge.net/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Source0: tidy-%{snap}cvs.tar.gz
+Source1: tab2space.1
 Source10: tidy-cvs_checkout.sh
 
 BuildRequires: libtool
@@ -82,6 +83,7 @@ rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
 install -p -m644 -D htmldoc/tidy.1 $RPM_BUILD_ROOT%{_mandir}/man1/tidy.1
+install -p -m644  %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/
 
 ## Unpackaged files
 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
@@ -102,6 +104,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/tab2space
 %{_bindir}/tidy
 %{_mandir}/man1/tidy.1*
+%{_mandir}/man1/tab2space.1*
 
 %files -n %{libname}
 %defattr(-,root,root,-)
@@ -115,6 +118,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Mar 28 2013 Pavel Raiskup <praiskup at redhat.com> - 0.99.0-28.20091203
+- add manual page for tab2space
+
 * Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.99.0-27.20091203
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list