bash-completion: fixed installation files and improved README file
This commit is contained in:
parent
37d049aaad
commit
a929deaee2
@ -1,13 +1,12 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/profile.d/
|
||||
-rw-r--r-- root/root etc/profile.d/bash_completion.sh
|
||||
-rw-r--r-- root/root etc/bash_completion
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||
-rw-r--r-- root/root usr/lib/pkgconfig/bash-completion.pc
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/bash-completion/
|
||||
-rw------- root/root usr/share/bash-completion/bash_completion
|
||||
-rwxr-xr-x root/root usr/share/bash-completion/bash_completion
|
||||
drwxr-xr-x root/root usr/share/bash-completion/completions/
|
||||
-rw-r--r-- root/root usr/share/bash-completion/completions/a2x
|
||||
-rw-r--r-- root/root usr/share/bash-completion/completions/abook
|
||||
|
@ -6,15 +6,21 @@
|
||||
|
||||
name=bash-completion
|
||||
version=1.90
|
||||
release=1
|
||||
release=2
|
||||
source=(http://$name.alioth.debian.org/files/$name-$version.tar.bz2)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
sed -e 's|pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|g' -i Makefile.*
|
||||
./configure --prefix=/usr --sysconfdir=/etc
|
||||
sed -i Makefile.* \
|
||||
-e 's|pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|g' \
|
||||
-e 's|profiledir = .*|profiledir = /etc|g'
|
||||
|
||||
./configure --prefix=/usr --sysconfdir=/etc
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
mv $PKG/etc/bash_completion{.sh,}
|
||||
chmod 0755 $PKG/usr/share/$name/bash_completion
|
||||
}
|
||||
|
@ -1,5 +1,18 @@
|
||||
POST-INSTALL:
|
||||
put the following line in your ~/.bashrc:
|
||||
. /etc/bash_completion
|
||||
|
||||
You can put additional init code into ~/.bash_completion
|
||||
README for bash-completion
|
||||
|
||||
POST-INSTALL:
|
||||
|
||||
The easiest way to use bash-completion is to source it from either
|
||||
/etc/bashrc or ~/.bashrc (or any other file sourcing those). You can
|
||||
do this by simply adding the following line:
|
||||
|
||||
. /etc/bash_completion
|
||||
|
||||
or alternatively:
|
||||
|
||||
# Use bash-completion, if available
|
||||
[[ $PS1 && -f /usr/share/bash-completion/bash-completion ]] && \
|
||||
. /usr/share/bash-completion/bash-completion
|
||||
|
||||
Note that you can also put additional init code into ~/.bash_completion
|
||||
|
Loading…
x
Reference in New Issue
Block a user