diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2004-11-05 18:45:54 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2004-11-05 18:45:54 +0000 |
commit | b07ea28186bddba87abfc180862b18af44052a1b (patch) | |
tree | f0fd8db14d7746dffc4bf74d8e7d2fa35c6bbf17 /app-shells/bash-completion-config/files | |
parent | unmask gnome for testing (diff) | |
download | gentoo-2-b07ea28186bddba87abfc180862b18af44052a1b.tar.gz gentoo-2-b07ea28186bddba87abfc180862b18af44052a1b.tar.bz2 gentoo-2-b07ea28186bddba87abfc180862b18af44052a1b.zip |
Revision bump; fix install of args that are a relative path.
Diffstat (limited to 'app-shells/bash-completion-config/files')
-rw-r--r-- | app-shells/bash-completion-config/files/0.4-r1_fix-relative-path-install.diff | 42 | ||||
-rw-r--r-- | app-shells/bash-completion-config/files/digest-bash-completion-config-0.4-r1 | 1 |
2 files changed, 43 insertions, 0 deletions
diff --git a/app-shells/bash-completion-config/files/0.4-r1_fix-relative-path-install.diff b/app-shells/bash-completion-config/files/0.4-r1_fix-relative-path-install.diff new file mode 100644 index 000000000000..cc503a3c1a05 --- /dev/null +++ b/app-shells/bash-completion-config/files/0.4-r1_fix-relative-path-install.diff @@ -0,0 +1,42 @@ +--- bash-completion-config.in.r50 2004-11-05 11:44:07.534197154 -0500 ++++ bash-completion-config.in 2004-11-05 11:44:14.908265230 -0500 +@@ -1,7 +1,7 @@ + #!%BASH% + # Copyright 1999-2004 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 +-# $Id: 0.4-r1_fix-relative-path-install.diff,v 1.1 2004/11/05 18:45:54 ka0ttic Exp $ ++# $Id: 0.4-r1_fix-relative-path-install.diff,v 1.1 2004/11/05 18:45:54 ka0ttic Exp $ + # + # Author: Aaron Walker <ka0ttic@gentoo.org> + +@@ -275,10 +275,26 @@ + header + for bashcomp in "$@" ; do + [[ "${bashcomp}" == -* ]] && continue; +- +- file="$BASHCOMP_DIR/${bashcomp##*/}" +- [[ "${bashcomp}" == */* ]] && file=$bashcomp # a path was given +- ++ ++ # what form is the argument in? ++ case "${bashcomp}" in ++ /*) # absolute path ++ file="$bashcomp" ;; ++ ++ */*) # relative path ++ file="$PWD/$bashcomp" ;; ++ ++ *) # just the name ++ # CWD ++ if [ -f "${bashcomp}" ] ; then ++ file="$PWD/$bashcomp" ++ # assume BASHCOMP_DIR ++ else ++ file="$BASHCOMP_DIR/$bashcomp" ++ fi ++ ;; ++ esac ++ + if [ ! -e "${file}" ] ; then + ewarn "${file##*/} doesn't seem to exist" + continue diff --git a/app-shells/bash-completion-config/files/digest-bash-completion-config-0.4-r1 b/app-shells/bash-completion-config/files/digest-bash-completion-config-0.4-r1 new file mode 100644 index 000000000000..88c3ace0f548 --- /dev/null +++ b/app-shells/bash-completion-config/files/digest-bash-completion-config-0.4-r1 @@ -0,0 +1 @@ +MD5 479a61889bf897c2f4d412eb9c892a80 bashcomp-config-0.4.tar.bz2 92312 |