summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-01 01:54:09 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-01 01:54:09 +0000
commit79e39574657e6a09e80b9991f5c1d1b80d27b8dd (patch)
tree20cc31bab242065dd66bedaf7ba989a9f62405c5 /app-arch/xz-utils/files
parentold (diff)
downloadhistorical-79e39574657e6a09e80b9991f5c1d1b80d27b8dd.tar.gz
historical-79e39574657e6a09e80b9991f5c1d1b80d27b8dd.tar.bz2
historical-79e39574657e6a09e80b9991f5c1d1b80d27b8dd.zip
Fix by Martin Väth for typo in xzgrep #356627 by Diego Elio Pettenò.
Package-Manager: portage-2.2.0_alpha25/cvs/Linux x86_64
Diffstat (limited to 'app-arch/xz-utils/files')
-rw-r--r--app-arch/xz-utils/files/xz-utils-5.0.1-xzgrep-typo.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-arch/xz-utils/files/xz-utils-5.0.1-xzgrep-typo.patch b/app-arch/xz-utils/files/xz-utils-5.0.1-xzgrep-typo.patch
new file mode 100644
index 000000000000..7bc8a4b3f9f3
--- /dev/null
+++ b/app-arch/xz-utils/files/xz-utils-5.0.1-xzgrep-typo.patch
@@ -0,0 +1,42 @@
+http://bugs.gentoo.org/356627
+
+From 399ff2690b17908552b44bf34065f2b11d1d7859 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20V=C3=A4th?= <vaeth@mathematik.uni-wuerzburg.de>
+Date: Mon, 28 Feb 2011 20:45:16 -0500
+Subject: [PATCH] xzgrep: fix typo in $0 parsing
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Reported-by: Diego Elio Pettenò <flameeyes@gentoo.org>
+Signed-off-by: Martin Väth <vaeth@mathematik.uni-wuerzburg.de>
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ src/scripts/xzgrep.in | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in
+index bfa9fb5..708f7de 100644
+--- a/src/scripts/xzgrep.in
++++ b/src/scripts/xzgrep.in
+@@ -27,7 +27,7 @@
+ xz='@xz@ --format=auto'
+ unset GZIP BZIP BZIP2
+
+-case ${0##/*} in
++case ${0##*/} in
+ *egrep*) prog=xzegrep; grep=${GREP:-egrep};;
+ *fgrep*) prog=xzfgrep; grep=${GREP:-fgrep};;
+ *) prog=xzgrep; grep=${GREP:-grep};;
+@@ -35,7 +35,7 @@ esac
+
+ version="$prog (@PACKAGE_NAME@) @VERSION@"
+
+-usage="Usage: ${0##/*} [OPTION]... [-e] PATTERN [FILE]...
++usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]...
+ Look for instances of PATTERN in the input FILEs, using their
+ uncompressed contents if they are compressed.
+
+--
+1.7.4.1
+