[Bash-completion-commits] [SCM] bash-completion branch, master, updated. ef8b4f27222fb9ade53120cdea5b13927b17a0ca

Freddy Vulto fvulto at gmail.com
Sun Oct 31 22:23:47 UTC 2010


The following commit has been merged in the master branch:
commit ef8b4f27222fb9ade53120cdea5b13927b17a0ca
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Sun Oct 31 23:20:19 2010 +0100

    Fix perldoc completions to run without invoking autotools
    Alioth #312729
    
    See also:
    http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg02143.html

diff --git a/Makefile.am b/Makefile.am
index 9401602..dcecc32 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = completions helpers test
+SUBDIRS = completions test
 
 sysconf_DATA = bash_completion
 
diff --git a/helpers/Makefile.am b/completions/helpers/Makefile.am
similarity index 100%
rename from helpers/Makefile.am
rename to completions/helpers/Makefile.am
diff --git a/helpers/perldoc b/completions/helpers/perldoc
similarity index 100%
rename from helpers/perldoc
rename to completions/helpers/perldoc
diff --git a/completions/perl b/completions/perl
index 9a1d84b..55d07cf 100644
--- a/completions/perl
+++ b/completions/perl
@@ -49,7 +49,7 @@ _perl()
 }
 complete -F _perl -o nospace -o filenames perl
 
-complete -C $BASH_COMPLETION_DIR/helpers/perldoc -o nospace -o default perldoc
+complete -C ${BASH_SOURCE[0]%/*}/helpers/perldoc -o nospace -o default perldoc
 }
 
 # Local variables:
diff --git a/configure.ac b/configure.ac
index 8cb6995..6f516f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,5 +3,5 @@ AC_INIT([bash-completion], [1.99])
 AM_INIT_AUTOMAKE([foreign dejagnu dist-bzip2 -Wall -Werror])
 AC_SUBST(bashcompdir, $sysconfdir/bash_completion.d)
 AC_SUBST(helpersdir, $sysconfdir/bash_completion.d/helpers)
-AC_CONFIG_FILES([Makefile completions/Makefile helpers/Makefile test/Makefile])
+AC_CONFIG_FILES([Makefile completions/Makefile completions/helpers/Makefile test/Makefile])
 AC_OUTPUT
diff --git a/test/lib/completions/perldoc.exp b/test/lib/completions/perldoc.exp
index d4461df..b084dda 100644
--- a/test/lib/completions/perldoc.exp
+++ b/test/lib/completions/perldoc.exp
@@ -11,12 +11,6 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "perldoc -"
-
-
-sync_after_int
-
-
 set test "perldoc should complete word containing colons"
 set cmd "perldoc File::"
 send "$cmd\t"

-- 
bash-completion



More information about the Bash-completion-commits mailing list