Skip to content

Commit

Permalink
Install bash completion
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 18, 2015
1 parent 1536609 commit e855bb6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile.am
Expand Up @@ -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

Expand All @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions configure.ac
Expand Up @@ -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
Expand All @@ -34,6 +38,7 @@ echo "
prefix: ${prefix}
datarootdir: ${datarootdir}
mandir: ${mandir}
bashcompdir: ${bashcompdir}

compiler: ${CC}
cflags: ${CFLAGS}
Expand Down

0 comments on commit e855bb6

Please sign in to comment.