Add loadkeys 'q' option to loadkeys manpage and --help

This commit is contained in:
vcrhonek 2009-03-05 12:52:12 +00:00
parent 0ea9932d98
commit 8f691daeaf
2 changed files with 41 additions and 1 deletions

34
kbd-1.15-quiet_doc.patch Normal file
View File

@ -0,0 +1,34 @@
diff -up kbd-1.15/man/man1/loadkeys.1.in_old kbd-1.15/man/man1/loadkeys.1.in
--- kbd-1.15/man/man1/loadkeys.1.in_old 2008-10-23 21:03:59.000000000 +0200
+++ kbd-1.15/man/man1/loadkeys.1.in 2009-03-05 13:11:08.000000000 +0100
@@ -19,6 +19,8 @@ loadkeys \- load keyboard translation ta
] [
.I -m --mktable
] [
+.I -q --quiet
+] [
.I -s --clearstrings
] [
.I -v --verbose
@@ -148,6 +150,10 @@ command (and does not modify the current
.B loadkeys
prints its version number and a short usage message to the programs
standard error output and exits.
+.TP
+.B \-q \-\-quiet
+.B loadkeys
+suppresses all normal output.
.SH WARNING
Note that anyone having read access to
.B /dev/console
diff -up kbd-1.15/src/loadkeys.c_old kbd-1.15/src/loadkeys.c
--- kbd-1.15/src/loadkeys.c_old 2008-10-23 21:03:59.000000000 +0200
+++ kbd-1.15/src/loadkeys.c 2009-03-05 13:09:00.000000000 +0100
@@ -1966,6 +1966,7 @@ usage(void) {
" -d --default load \"%s\"\n"
" -h --help display this help text\n"
" -m --mktable output a \"defkeymap.c\" to stdout\n"
+" -q --quiet suppress all normal output\n"
" -s --clearstrings clear kernel string table\n"
" -u --unicode implicit conversion to Unicode\n"
" -v --verbose report the changes\n"), PACKAGE_VERSION, DEFMAP);

View File

@ -1,6 +1,6 @@
Name: kbd
Version: 1.15
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Tools for configuring the console (keyboard, virtual terminals, etc.)
Group: System Environment/Base
@ -16,6 +16,7 @@ Patch1: kbd-1.15-keycodes-man.patch
Patch2: kbd-1.15-sparc.patch
Patch3: kbd-1.15-unicode_start.patch
Patch4: kbd-1.15-resizecon-x86_64.patch
Patch5: kbd-1.15-quiet_doc.patch
BuildRequires: bison, flex, gettext
Conflicts: util-linux < 2.11r-9
@ -34,6 +35,7 @@ fonts, the virtual terminals and font files.
%patch2 -p1 -b .sparc
%patch3 -p1 -b .unicode_start
%patch4 -p1 -b .resizecon_x86_64
%patch5 -p1 -b .quiet_doc
# 7-bit maps are obsolete; so are non-euro maps
pushd data/keymaps/i386
@ -104,6 +106,10 @@ rm -rf $RPM_BUILD_ROOT
/lib/kbd
%changelog
* Thu Mar 5 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.15-7
- Add loadkeys 'q' option to loadkeys manpage and --help
Resolves: #487538
* Mon Mar 2 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.15-6
- Remove static loadkeys binary (it's not needed anymore)