Added pkgconfig file with paths used by bash-completion

master
David Paleino 2011-05-02 20:31:47 +02:00
parent 4ee9850e28
commit 90b67bc976
4 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ doc/*.xml
*~
doc/html*
bash_completion.sh
bash-completion.pc

View File

@ -5,6 +5,9 @@ pkgdata_DATA = bash_completion
profiledir = $(sysconfdir)/profile.d
profile_DATA = bash_completion.sh
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA = bash-completion.pc
bash_completion.sh: bash_completion.sh.in Makefile
sed -e 's|@pkgdatadir[@]|$(pkgdatadir)|' <$(srcdir)/$@.in >$@

9
bash-completion.pc.in Normal file
View File

@ -0,0 +1,9 @@
prefix=@prefix@
compatdir=@compatdir@
completionsdir=@datarootdir@/@PACKAGE@/completions
helpersdir=@datarootdir@/@PACKAGE@/helpers
Name: bash-completion
Description: programmable completion for the bash shell
URL: http://bash-completion.alioth.debian.org/
Version: @VERSION@

View File

@ -2,5 +2,5 @@ AC_PREREQ([2.59])
AC_INIT([bash-completion], [1.99])
AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip -Wall -Werror])
AC_SUBST(compatdir, $sysconfdir/bash_completion.d)
AC_CONFIG_FILES([Makefile completions/Makefile helpers/Makefile test/Makefile])
AC_CONFIG_FILES([Makefile completions/Makefile helpers/Makefile test/Makefile bash-completion.pc])
AC_OUTPUT