summaryrefslogtreecommitdiff
blob: e9e0e6c98dfd35cb121baf994952e1d6846702de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Index: lxc-lxc-1.0.8/config/bash/Makefile.am
===================================================================
--- lxc-lxc-1.0.8.orig/config/bash/Makefile.am
+++ lxc-lxc-1.0.8/config/bash/Makefile.am
@@ -2,12 +2,12 @@ EXTRA_DIST = lxc
 
 if ENABLE_BASH
 install-bash:
-	$(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
-	$(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
+	$(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions/
+	$(INSTALL_DATA) lxc $(DESTDIR)$(datarootdir)/bash-completion/completions/
 
 uninstall-bash:
-	rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
-	rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
+	rm -f $(DESTDIR)$(datarootdir)/bash-completion/completions/lxc
+	rmdir $(DESTDIR)$(datarootdir)/bash-completion// || :
 
 install-data-local: install-bash
 uninstall-local: uninstall-bash
Index: lxc-lxc-1.0.8/config/bash/lxc.in
===================================================================
--- lxc-lxc-1.0.8.orig/config/bash/lxc.in
+++ lxc-lxc-1.0.8/config/bash/lxc.in
@@ -1,4 +1,3 @@
-have lxc-start && {
     _lxc_names() {
         COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
     }
@@ -100,4 +99,3 @@ have lxc-start && {
 
     complete -o default -F _lxc_generic_o lxc-clone
     complete -o default -F _lxc_generic_o lxc-start-ephemeral
-}