[tree/f19] Document --du and --prune options in help output (bug #948991).

Tim Waugh twaugh at fedoraproject.org
Thu Apr 11 11:00:42 UTC 2013


commit c8751a7d3767c136ff110eb4b916ec3968c7b6b3
Author: Tim Waugh <twaugh at redhat.com>
Date:   Thu Apr 11 11:57:32 2013 +0100

    Document --du and --prune options in help output (bug #948991).

 tree-args.patch |   12 ++++++++++++
 tree.spec       |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/tree-args.patch b/tree-args.patch
new file mode 100644
index 0000000..5fa5dd2
--- /dev/null
+++ b/tree-args.patch
@@ -0,0 +1,12 @@
+diff -up tree-1.6.0/tree.c.args tree-1.6.0/tree.c
+--- tree-1.6.0/tree.c.args	2013-04-11 11:53:47.676572649 +0100
++++ tree-1.6.0/tree.c	2013-04-11 11:56:10.962350448 +0100
+@@ -536,6 +536,8 @@ void usage(int n)
+ 	"  --filelimit # Do not descend dirs with more than # files in them.\n"
+ 	"  --timefmt <f> Print and format time according to the format <f>.\n"
+ 	"  -o filename   Output to file instead of stdout.\n"
++	"  --du          Print directory sizes.\n"
++	"  --prune       Prune empty directories from the output.\n"
+ 	"  -------- File options ---------\n"
+ 	"  -q            Print non-printable characters as '?'.\n"
+ 	"  -N            Print non-printable characters as is.\n"
diff --git a/tree.spec b/tree.spec
index 360a8ec..309f1d1 100644
--- a/tree.spec
+++ b/tree.spec
@@ -1,7 +1,7 @@
 Summary: File system tree viewer
 Name: tree
 Version: 1.6.0
-Release: 6%{?dist}
+Release: 7%{?dist}
 Group: Applications/File
 License: GPLv2+
 Url: http://mama.indstate.edu/users/ice/tree/
@@ -9,6 +9,7 @@ Source: ftp://mama.indstate.edu/linux/tree/tree-%{version}.tgz
 Patch1: tree-no-strip.patch
 Patch2: tree-preserve-timestamps.patch
 Patch3: tree-no-color-by-default.patch
+Patch4: tree-args.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
@@ -27,6 +28,9 @@ utility.
 # Disable color output by default.
 %patch3 -p1 -b .no-color-by-default
 
+# Document --du and --prune options in help output (bug #948991).
+%patch4 -p1 -b .args
+
 %build
 make CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)" %{?_smp_mflags}
 
@@ -50,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc README LICENSE
 
 %changelog
+* Thu Apr 11 2013 Tim Waugh <twaugh at redhat.com> - 1.6.0-7
+- Document --du and --prune options in help output (bug #948991).
+
 * Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list