Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #36 from scop/master

Install bash completion
  • Loading branch information...
commit 3f9cb71982c43eaf61e1e1f838cb7d9de5559b28 2 parents 1536609 + e855bb6
@gregkh authored
Showing with 15 additions and 1 deletion.
  1. +10 −1 Makefile.am
  2. +5 −0 configure.ac
View
11 Makefile.am
@@ -27,11 +27,13 @@ dist_man_MANS = \
bti.1 \
bti-shrink-urls.1
+bashcompdir = @bashcompdir@
+dist_bashcomp_DATA = bti-bashcompletion
+
EXTRA_DIST = \
bti.xml \
bti-shrink-urls.xml \
bti.example \
- bti-bashcompletion \
RELEASE-NOTES \
bti-shrink-urls
@@ -47,6 +49,13 @@ git-clean:
distclean-local:
rm -rf autom4te.cache
+install-data-hook:
+ mv $(DESTDIR)$(bashcompdir)/bti-bashcompletion \
+ $(DESTDIR)$(bashcompdir)/bti
+
+uninstall-hook:
+ $(RM) $(DESTDIR)$(bashcompdir)/bti
+
PREVIOUS_VERSION = 0`expr $(VERSION) - 1`
changelog:
View
5 configure.ac
@@ -22,6 +22,10 @@ PKG_CHECK_MODULES([JSON], [json-c])
AC_SEARCH_LIBS([dlopen], [dl])
+PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], ,
+ bashcompdir="${sysconfdir}/bash_completion.d")
+AC_SUBST(bashcompdir)
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
@@ -34,6 +38,7 @@ echo "
prefix: ${prefix}
datarootdir: ${datarootdir}
mandir: ${mandir}
+ bashcompdir: ${bashcompdir}
compiler: ${CC}
cflags: ${CFLAGS}
Please sign in to comment.
Something went wrong with that request. Please try again.