[msitools] build-sys: install bash completion



commit b7346c11677f1592cf530ccb1190655a31998dd0
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Fri Jan 25 14:28:42 2013 +0100

    build-sys: install bash completion

 Makefile.am                                   |    9 ++++++++-
 msitools-completion.sh => completion/msitools |    0
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 687e798..756332c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,5 @@
 NULL =
+EXTRA_DIST =
 ACLOCAL_AMFLAGS = -I m4
 SUBDIRS = include data libmsi tests po .
 
@@ -127,6 +128,12 @@ wixl_heat_SOURCES =				\
 wixl_heat_CPPFLAGS = $(wixl_CPPFLAGS)
 wixl_heat_LDADD = $(wixl_LDADD)
 
+# bash completion
+
+completiondir = $(datadir)/bash-completion/completions
+completion_DATA = completion/msitools
+EXTRA_DIST += $(completion_DATA)
+
 # Autotest support
 
 dist_noinst_DATA = tests/testsuite.at tests/wixl.at tests/package.m4 tests/testsuite
@@ -158,4 +165,4 @@ $(srcdir)/tests/testsuite: tests/testsuite.at tests/wixl.at tests/package.m4
 		$(AUTOM4TE) --language=autotest -o testsuite.tmp testsuite.at && \
 		mv testsuite.tmp testsuite
 
-EXTRA_DIST = msitools.doap build-aux/move-if-change autogen.sh
+EXTRA_DIST += msitools.doap build-aux/move-if-change autogen.sh
diff --git a/msitools-completion.sh b/completion/msitools
similarity index 100%
rename from msitools-completion.sh
rename to completion/msitools



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]