diff options
author | Jose V Beneyto <sepen@crux.nu> | 2011-11-08 17:56:21 +0100 |
---|---|---|
committer | Jose V Beneyto <sepen@crux.nu> | 2011-11-08 17:56:21 +0100 |
commit | a929deaee2f7c0f9958b1e14f36eb77459f0680d (patch) | |
tree | a4e7799a5ad13fa8e67ba17ab7b8e53c6ed1ff73 /bash-completion | |
parent | 37d049aaad3f8b89ce075b5c9326e437d4ea71d2 (diff) | |
download | opt-a929deaee2f7c0f9958b1e14f36eb77459f0680d.tar.gz opt-a929deaee2f7c0f9958b1e14f36eb77459f0680d.tar.xz |
bash-completion: fixed installation files and improved README file
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/.footprint | 5 | ||||
-rw-r--r-- | bash-completion/Pkgfile | 12 | ||||
-rw-r--r-- | bash-completion/README | 19 |
3 files changed, 27 insertions, 9 deletions
diff --git a/bash-completion/.footprint b/bash-completion/.footprint index 78438c4a5..146d21567 100644 --- a/bash-completion/.footprint +++ b/bash-completion/.footprint @@ -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 diff --git a/bash-completion/Pkgfile b/bash-completion/Pkgfile index 4ff4879df..d198208ff 100644 --- a/bash-completion/Pkgfile +++ b/bash-completion/Pkgfile @@ -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 } diff --git a/bash-completion/README b/bash-completion/README index f7a40a292..443cda675 100644 --- a/bash-completion/README +++ b/bash-completion/README @@ -1,5 +1,18 @@ + +README for bash-completion + POST-INSTALL: -put the following line in your ~/.bashrc: - . /etc/bash_completion -You can put additional init code into ~/.bash_completion + 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 |