[Bash-completion-commits] [SCM] debian-package branch, master, updated. debian/1.3-3-11-g9176828
David Paleino
dapal at debian.org
Thu Nov 3 12:09:08 UTC 2011
The following commit has been merged in the master branch:
commit 75a48b26676a4912c6984c7822fecdfcf460bffe
Author: David Paleino <dapal at debian.org>
Date: Thu Nov 3 12:42:39 2011 +0100
Drop trigger-based completion loading
diff --git a/debian/README.Debian b/debian/README.Debian
index d478c4e..7040376 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -3,11 +3,6 @@ bash-completion for Debian
Completions are kept in /usr/share/bash-completions/completions.
- When a package is installed, the update-bash-completion(1) script creates
- symlinks under /var/lib/bash-completion/. If you want to enable a specific
- completion, just symlink it from the aforementioned directory to
- /etc/bash_completion.d/ -- and then open a new shell.
-
/etc/bash_completion.d/ is being kept for compatibility reasons; but will
disappear in future. If you're a package maintainer, you're encouraged to
use dh_bash-completion(1), which will take care of installing third-party
diff --git a/debian/changelog b/debian/changelog
index 610c8a7..e8d1d61 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,9 @@ bash-completion (1:1.90-1) UNRELEASED; urgency=low
* Add message for users before they report a bug (debian/bug-presubj),
I'm kind of fed-up with bugs caused by acroread.sh :/
* Removed patches merged upstream
+ * Drop trigger-based completion loading
- -- David Paleino <dapal at debian.org> Thu, 03 Nov 2011 12:33:53 +0100
+ -- David Paleino <dapal at debian.org> Thu, 03 Nov 2011 12:42:20 +0100
bash-completion (1:1.3-3) experimental; urgency=low
diff --git a/debian/dirs b/debian/dirs
index bbe08bd..ce73da0 100644
--- a/debian/dirs
+++ b/debian/dirs
@@ -3,4 +3,3 @@ usr/bin
usr/share/doc/bash
usr/share/doc/bash-completion
usr/share/perl5/Debian/Debhelper/Sequence/
-var/lib/bash-completion
diff --git a/debian/extra/cron/bash-completion b/debian/extra/cron/bash-completion
deleted file mode 100755
index 0e596f1..0000000
--- a/debian/extra/cron/bash-completion
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-[ -x /usr/sbin/update-bash-completion ] || exit 0
-
-rm -rf /var/lib/bash-completion/*
-/usr/sbin/update-bash-completion
diff --git a/debian/extra/scripts/update-bash-completion b/debian/extra/scripts/update-bash-completion
deleted file mode 100755
index 42b043a..0000000
--- a/debian/extra/scripts/update-bash-completion
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/bash
-# install relevant completions, by sourcing every scriptlet
-# found in a given directory, and symlinking those matching
-# an installed command to another directory
-
-have()
-{
- PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null
-}
-
-usage()
-{
- echo "usage: $0 <completion_dir> [installation_dir]"
-}
-
-while getopts ":h" flag; do
- case $flag in
- h) usage; exit 0;;
- esac
-done
-
-shift $((OPTIND - 1))
-
-completion_dir=/usr/share/bash-completion/completions/
-if [ -z "$completion_dir" ]; then
- echo "missing completion directory"
- usage
- exit 1
-fi
-if [ ! -d $completion_dir ]; then
- echo "invalid directory $completion_dir"
- usage
- exit 1
-fi
-
-installation_dir=/var/lib/bash-completion/
-if [ ! -d $installation_dir ]; then
- echo "invalid directory $installation_dir"
- usage
- exit 1
-fi
-
-# many scripts require this
-shopt -s extglob
-
-# and some require this also
-UNAME=$(uname -s)
-UNAME=${UNAME/CYGWIN_*/Cygwin}
-
-case $UNAME in
- Linux|GNU|GNU/*) USERLAND=GNU ;;
- *) USERLAND=$UNAME ;;
-esac
-
-for script in $completion_dir/*; do
- dest=$installation_dir/$(basename $script)
-
- if [ -L "$dest" ]; then
- continue
- fi
-
- # reset completion
- complete -r
-
- # source script
- source $script 2>/dev/null
-
- # check completion output
- output=$(complete -p)
-
- if [ -z "$output" ]; then
- continue
- fi
-
- if [ -n "$installation_dir" ]; then
- ln -sf $script $dest
- else
- echo "$script OK"
- fi
-
-done
diff --git a/debian/extra/scripts/update-bash-completion.1 b/debian/extra/scripts/update-bash-completion.1
deleted file mode 100644
index b5d1ecc..0000000
--- a/debian/extra/scripts/update-bash-completion.1
+++ /dev/null
@@ -1,20 +0,0 @@
-.TH UPDATE-BASH-COMPLETION 1 "Apr 25, 2011"
-.SH NAME
-update-bash-completion \- update completions symlinks
-.SH SYNOPSIS
-.B update-bash-completion
-.SH DESCRIPTION
-This manual page documents briefly the \fBupdate-bash-completion\fR command.
-.PP
-\fBupdate-bash-completion\fP is used to update the symbolic links pointing to
-bash completions for installed programs.
-.PP
-It is usually run during after the installation of any package installing
-executables under \fI/usr/bin\fR, \fI/usr/sbin\fR, \fI/usr/games\fR,
-\fI/bin\fR or \fI/sbin\fR, but it may also be run manually.
-.SH AUTHOR
-update-bash-completion was written by Guillaume Rousse <Guillaume.Rousse at inria.fr>,
-and was adapted for Debian by David Paleino <dapal at debian.org>.
-.PP
-This manual page was written by David Paleino <dapal at debian.org>,
-for the Debian project (and may be used by others).
diff --git a/debian/install b/debian/install
index 7e7074a..bcda339 100644
--- a/debian/install
+++ b/debian/install
@@ -1,5 +1,2 @@
debian/extra/debhelper/dh_bash-completion /usr/bin/
debian/extra/debhelper/bash_completion.pm /usr/share/perl5/Debian/Debhelper/Sequence/
-
-debian/extra/scripts/update-bash-completion /usr/sbin/
-debian/extra/cron/bash-completion /etc/cron.monthly/
diff --git a/debian/manpages b/debian/manpages
index 1195bf5..f41aae7 100644
--- a/debian/manpages
+++ b/debian/manpages
@@ -1,2 +1 @@
debian/extra/debhelper/dh_bash-completion.1
-debian/extra/scripts/update-bash-completion.1
diff --git a/debian/triggers b/debian/triggers
deleted file mode 100644
index 0f8572d..0000000
--- a/debian/triggers
+++ /dev/null
@@ -1,5 +0,0 @@
-interest /usr/bin
-interest /usr/sbin
-interest /usr/games
-interest /bin
-interest /sbin
--
debian-package
More information about the Bash-completion-commits
mailing list