Documentation enhancements
This commit is contained in:
parent
be29308ed6
commit
d5b503c06f
39
ledmon-doc.patch
Normal file
39
ledmon-doc.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
ledctl documentation improvements
|
||||||
|
|
||||||
|
Remove invalid option from the manpage. Show short options in usage().
|
||||||
|
|
||||||
|
Author: Jan Synacek <jsynacek@redhat.com>
|
||||||
|
|
||||||
|
--- ledmon-0.77/doc/ledctl.pod 2013-02-12 14:45:22.000000000 +0100
|
||||||
|
+++ ledmon-0.77/doc/ledctl.pod.new 2013-04-19 10:25:41.784551587 +0200
|
||||||
|
@@ -258,11 +258,6 @@
|
||||||
|
Sets a path to local log file. If this option is specified the global log
|
||||||
|
file F</var/log/ledctl.log> is not used.
|
||||||
|
|
||||||
|
-=item B<--quiet>
|
||||||
|
-
|
||||||
|
-Turns off all messages sent to C<stdout> or C<stderr> out. The messages
|
||||||
|
-will be still logged to local file and syslog facility.
|
||||||
|
-
|
||||||
|
=item B<-h> or B<--help>
|
||||||
|
|
||||||
|
Prints this text out and exits.
|
||||||
|
--- ledmon-0.77/src/ledctl.c 2013-02-12 14:45:28.000000000 +0100
|
||||||
|
+++ ledmon-0.77/src/ledctl.c.new 2013-04-19 10:28:07.895707605 +0200
|
||||||
|
@@ -179,13 +179,13 @@
|
||||||
|
printf("Mandatory arguments for long options are mandatory for" \
|
||||||
|
" short options, too.\n\n");
|
||||||
|
printf
|
||||||
|
- ("--log=PATH\t\t\t Use local log file instead\n" \
|
||||||
|
+ ("--log=PATH, -l PATH\t\t Use local log file instead\n" \
|
||||||
|
"\t\t\t\t /var/log/ledctl.log global file.\n");
|
||||||
|
printf("--config=PATH, -c PATH\t\t Use alternate configuration" \
|
||||||
|
" file (not yet\n\t\t\t\t implemented).\n");
|
||||||
|
- printf("--help\t\t\t\t Displays this help text.\n");
|
||||||
|
+ printf("--help, -h\t\t\t Displays this help text.\n");
|
||||||
|
printf
|
||||||
|
- ("--version\t\t\t Displays version and license information.\n\n");
|
||||||
|
+ ("--version, -v\t\t\t Displays version and license information.\n\n");
|
||||||
|
printf("Patterns:\n"
|
||||||
|
"\tCommon patterns are:\n"
|
||||||
|
"\t\tlocate, locate_off, normal, off, degraded, rebuild,\n" ""
|
@ -7,6 +7,7 @@ Group: Applications/System
|
|||||||
URL: http://sourceforge.net/projects/ledmon/
|
URL: http://sourceforge.net/projects/ledmon/
|
||||||
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
Patch0: ledmon_cflags.patch
|
Patch0: ledmon_cflags.patch
|
||||||
|
Patch1: ledmon-doc.patch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: sg3_utils-devel
|
BuildRequires: sg3_utils-devel
|
||||||
Obsoletes: ledctl = 0.1-1
|
Obsoletes: ledctl = 0.1-1
|
||||||
@ -23,6 +24,7 @@ use this application.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .cflags
|
%patch0 -p1 -b .cflags
|
||||||
|
%patch1 -p1 -b .doc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# can't use smp_flags because -j4 makes the build fail
|
# can't use smp_flags because -j4 makes the build fail
|
||||||
@ -40,6 +42,7 @@ make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUI
|
|||||||
%changelog
|
%changelog
|
||||||
* Fri Apr 19 2013 Jan Synáček <jsynacek@redhat.com> - 0.77-1
|
* Fri Apr 19 2013 Jan Synáček <jsynacek@redhat.com> - 0.77-1
|
||||||
- Update to 0.77
|
- Update to 0.77
|
||||||
|
- Documentation enhancements
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.75-2
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.75-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user