diff --git a/less-458-lessecho-usage.patch b/less-458-lessecho-usage.patch new file mode 100644 index 0000000..40a05b7 --- /dev/null +++ b/less-458-lessecho-usage.patch @@ -0,0 +1,33 @@ +diff -upr less-458_orig/lessecho.c less-458_work/lessecho.c +--- less-458_orig/lessecho.c 2013-05-07 14:03:52.091104655 +0200 ++++ less-458_work/lessecho.c 2013-05-07 11:21:10.883991862 +0200 +@@ -41,7 +41,27 @@ static int num_metachars = 0; + pr_usage() + { + fprintf(stderr, +- "usage: lessecho [-ox] [-cx] [-pn] [-dn] [-mx] [-nn] [-ex] [-fn] [-a] file ...\n"); ++ "usage: lessecho [-ox] [-cx] [-pn] [-dn] [-mx] [-nn] [-ex] [-fn] [-a] file ...\n\n"); ++ fprintf(stderr, ++ " -ox\t- specifies \"x\" to be the open quote character\n"); ++ fprintf(stderr, ++ " -cx\t- specifies \"x\" to be the close quote character\n"); ++ fprintf(stderr, ++ " -pn\t- specifies \"n\" to be the open quote character, as an integer\n"); ++ fprintf(stderr, ++ " -dn\t- specifies \"n\" to be the close quote character, as an integer\n"); ++ fprintf(stderr, ++ " -mx\t- specifies \"x\" to be a metachar\n"); ++ fprintf(stderr, ++ " -nn\t- specifies \"n\" to be a metachar, as an integer\n"); ++ fprintf(stderr, ++ " -ex\t- specifies \"x\" to be the escape char for metachars\n"); ++ fprintf(stderr, ++ " -fn\t- specifies \"n\" to be the escape char for metachars, as an integer\n"); ++ fprintf(stderr, ++ " -a\t- specifies that all arguments are to be quoted\n"); ++ fprintf(stderr, ++ " -?\t- prints this help\n"); + } + + static void + diff --git a/less.spec b/less.spec index 85010dc..d88fe03 100644 --- a/less.spec +++ b/less.spec @@ -14,6 +14,7 @@ Patch4: less-394-time.patch Patch5: less-418-fsync.patch Patch6: less-436-manpage-add-old-bot-option.patch Patch7: less-436-help.patch +Patch8: less-458-lessecho-usage.patch URL: http://www.greenwoodsoftware.com/less/ Requires: groff-base BuildRequires: ncurses-devel @@ -37,6 +38,7 @@ files, and you'll use it frequently. %patch5 -p1 -b .fsync %patch6 -p1 -b .manpage-add-old-bot-option %patch7 -p1 -b .help +%patch8 -p1 -b .lessecho-usage autoreconf chmod -R a+w * @@ -66,6 +68,8 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d rm -rf $RPM_BUILD_ROOT %changelog +- Expanded lessecho usage (#948597) + * Thu Apr 11 2013 Fridolin Pokorny - 458-2 - Added gpg support to lesspipe.sh (#885122) - Added ~/.lessfilter support (#885122)