Update of /cvsroot/fink/experimental/rangerrick/shells
In directory usw-pr-cvs1:/tmp/cvs-serv23324

Added Files:
        bash-completion-20020803-2.info 
        bash-completion-20020803-2.patch 
Removed Files:
        bash-completion-20020803-1.info 
        bash-completion-20020803-1.patch 
Log Message:
auto-source the fink completion


--- NEW FILE: bash-completion-20020803-2.info ---
Package: bash-completion
Version: 20020803
Revision: 1
Depends: bash (>= 2.0.5)
Source: http://www.caliban.org/files/bash/%n-%v.tar.gz
SourceDirectory: bash_completion
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%f.patch | patch -p1
CompileScript: echo "none needed"
InstallScript: <<
  install -d -m 755 %i/etc
  install -d -m 755 %i/etc/bash_completion.d
  install -d -m 755 %i/etc/profile.d
  install -m 755 bash_completion %i/etc/
  install -m 755 bash-completion.sh %i/etc/profile.d/
<<
DocFiles: BUGS COPYING ChangeLog README
Description: A set of command-line completions for bash
DescDetail: <<
This is a set of addons for doing command-line completion for
common tasks, using the bash shell.
<<
License: GPL
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
Homepage: http://www.caliban.org/bash/index.shtml

--- NEW FILE: bash-completion-20020803-2.patch ---
diff -uNbr bash_completion/bash-completion.sh bash_completion-new/bash-completion.sh
--- bash_completion/bash-completion.sh  Wed Dec 31 19:00:00 1969
+++ bash_completion-new/bash-completion.sh      Sun Aug 11 23:45:33 2002
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if test ${SHELL#*bin/} = "bash"; then
+       bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
+       if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \
+               && [ -f @PREFIX@/etc/bash_completion ]; then # interactive shell
+               # Source completion code
+               . @PREFIX@/etc/bash_completion
+       fi
+       if [ -f @PREFIX@/share/init/bash/completions ]; then
+               . @PREFIX@/share/init/bash/completions
+       fi
+       unset bash bmajor bminor
+fi
diff -uNbr bash_completion/bash_completion bash_completion-new/bash_completion
--- bash_completion/bash_completion     Sat Aug  3 05:35:33 2002
+++ bash_completion-new/bash_completion Sun Aug 11 23:43:57 2002
@@ -24,8 +24,8 @@
 
 # Alter the following to reflect the location of this file
 #
-declare -r BASH_COMPLETION=${BASH_COMPLETION:-/etc/bash_completion} 2>/dev/null
-declare -r BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/etc/bash_completion.d} 
2>/dev/null
+declare -r BASH_COMPLETION=${BASH_COMPLETION:-@PREFIX@/etc/bash_completion} 
+2>/dev/null
+declare -r BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=@PREFIX@/etc/bash_completion.d} 
+2>/dev/null
 
 # Set a couple of useful vars
 #

--- bash-completion-20020803-1.info DELETED ---

--- bash-completion-20020803-1.patch DELETED ---



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to