summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2009-07-25 05:57:08 +0000
committerJeroen Roovers <jer@gentoo.org>2009-07-25 05:57:08 +0000
commit88f8a04ec06117b258c3425dfa91fb17495ba071 (patch)
tree0c9ef966c7cf25c8dea8cab085450a086dd0d4ec /www-client/surfraw/files
parentversion bumps (diff)
downloadhistorical-88f8a04ec06117b258c3425dfa91fb17495ba071.tar.gz
historical-88f8a04ec06117b258c3425dfa91fb17495ba071.tar.bz2
historical-88f8a04ec06117b258c3425dfa91fb17495ba071.zip
Fixed completion script
to work without app-shells/bash-completion installed, many thanks to urcindalo in Bug #277891. Package-Manager: portage-2.2_rc33/cvs/Linux i686
Diffstat (limited to 'www-client/surfraw/files')
-rw-r--r--www-client/surfraw/files/surfraw-2.1.5-gentoo_pkg_tools.patch9
1 files changed, 7 insertions, 2 deletions
diff --git a/www-client/surfraw/files/surfraw-2.1.5-gentoo_pkg_tools.patch b/www-client/surfraw/files/surfraw-2.1.5-gentoo_pkg_tools.patch
index 4e17de986a73..548a51dc353a 100644
--- a/www-client/surfraw/files/surfraw-2.1.5-gentoo_pkg_tools.patch
+++ b/www-client/surfraw/files/surfraw-2.1.5-gentoo_pkg_tools.patch
@@ -5,8 +5,13 @@ Index: surfraw-2.1.5/surfraw-bash-completion.IN
===================================================================
--- surfraw-2.1.5/surfraw-bash-completion.IN {cset 8f95d483-869f-47ba-aba2-f0a12bb9dd07}
+++ surfraw-2.1.5/surfraw-bash-completion.IN {local clone}
-@@ -1,4 +1,20 @@
+@@ -1,4 +1,25 @@
# -*- sh -*- bash programmable completion for Surfraw, v2.2
++
++# This is for people who wish to use surfraw completion, without
++# installing the bash-completion package.
++shopt -s extglob
++
+_srpkgname()
+{
+ local pd
@@ -26,7 +31,7 @@ Index: surfraw-2.1.5/surfraw-bash-completion.IN
_surfraw()
{ COMPREPLY=()
local cur=${COMP_WORDS[COMP_CWORD]}
-@@ -14,7 +30,7 @@ _surfraw()
+@@ -14,7 +35,7 @@ _surfraw()
then COMPREPLY=( $( compgen -W "$elvi" -- $cur ) )
# "sr go<tab>" for google
elif [[ $prev == @(alioth|deb@(bugs|contents|packages|pts|sec)|freshmeat|fsfdir|sourceforge) ]]