mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 05:17:54 +00:00
Install bash completion into new location
/share/bash-completion/completions rather than /etc/bash_completion.d Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
970811a1c5
commit
b670aaf1ad
12
Makefile.am
12
Makefile.am
@ -6,12 +6,12 @@ include verbatim-data.mk
|
|||||||
SUBDIRS = kconfig
|
SUBDIRS = kconfig
|
||||||
|
|
||||||
bin_SCRIPTS = ct-ng
|
bin_SCRIPTS = ct-ng
|
||||||
CLEANFILES = ct-ng ct-ng.comp docs/ct-ng.1
|
CLEANFILES = ct-ng bash-completion/ct-ng docs/ct-ng.1
|
||||||
EXTRA_DIST = bootstrap ct-ng.in ct-ng.comp.in docs/ct-ng.1.in maintainer
|
EXTRA_DIST = bootstrap ct-ng.in bash-completion/ct-ng.in docs/ct-ng.1.in maintainer
|
||||||
|
|
||||||
if INSTALL_BASH_COMPLETION
|
if INSTALL_BASH_COMPLETION
|
||||||
compdir = $(sysconfdir)/@BASH_COMPLETION_DIR@
|
compdir = @BASH_COMPLETION_DIR@
|
||||||
comp_SCRIPTS = ct-ng.comp
|
comp_SCRIPTS = bash-completion/ct-ng
|
||||||
endif
|
endif
|
||||||
|
|
||||||
man1_MANS = docs/ct-ng.1
|
man1_MANS = docs/ct-ng.1
|
||||||
@ -53,8 +53,8 @@ ct-ng: ct-ng.in Makefile
|
|||||||
docs/ct-ng.1: docs/ct-ng.1.in Makefile
|
docs/ct-ng.1: docs/ct-ng.1.in Makefile
|
||||||
$(AM_V_GEN)$(MKDIR_P) docs && $(do_subst) < $< >$@-t && mv -f $@-t $@
|
$(AM_V_GEN)$(MKDIR_P) docs && $(do_subst) < $< >$@-t && mv -f $@-t $@
|
||||||
|
|
||||||
ct-ng.comp: ct-ng.comp.in Makefile
|
bash-completion/ct-ng: bash-completion/ct-ng.in Makefile
|
||||||
$(AM_V_GEN)$(do_subst) < $< >$@-t && mv -f $@-t $@
|
$(AM_V_GEN)$(MKDIR_P) bash-completion && $(do_subst) < $< >$@-t && mv -f $@-t $@
|
||||||
|
|
||||||
dist-hook: maintainer/download-docs.sh
|
dist-hook: maintainer/download-docs.sh
|
||||||
$< $(top_distdir) $(USER_MANUAL_FILES)
|
$< $(top_distdir) $(USER_MANUAL_FILES)
|
||||||
|
28
configure.ac
28
configure.ac
@ -33,27 +33,19 @@ AC_ARG_ENABLE(
|
|||||||
[run ct-ng from the current directory; 'make install' unsupported])])
|
[run ct-ng from the current directory; 'make install' unsupported])])
|
||||||
AC_SUBST([enable_local], [${enable_local:-no}])
|
AC_SUBST([enable_local], [${enable_local:-no}])
|
||||||
|
|
||||||
AC_ARG_WITH([bash-completion-dir],
|
AC_ARG_WITH([bash-completion],
|
||||||
[AS_HELP_STRING(
|
[AS_HELP_STRING(
|
||||||
[--with-bash-completion],
|
[--with-bash-completion],
|
||||||
[install bash(1) command completion for ct-ng into specified directory,
|
[install bash(1) command completion; can specify a path where it will be installed])],
|
||||||
relative to sysconfdir])],
|
|
||||||
[],
|
[],
|
||||||
[with_bash_completion_dir=bash_completion.d])
|
[with_bash_completion=yes])
|
||||||
AM_CONDITIONAL([INSTALL_BASH_COMPLETION], [test "${with_bash_completion_dir}" != "no" ])
|
AS_IF([test "${with_bash_completion}" = "no"],
|
||||||
AC_SUBST([BASH_COMPLETION_DIR], [${with_bash_completion_dir}])
|
[BASH_COMPLETION_DIR=],
|
||||||
|
[test "${with_bash_completion}" != "yes"],
|
||||||
# FIXME: I don't know why we have this. Will remove after the 1.24 release.
|
[BASH_COMPLETION_DIR="${with_bash_completion}"],
|
||||||
AC_ARG_ENABLE(
|
[BASH_COMPLETION_DIR='${datadir}/bash-completion/completions'])
|
||||||
[shared],
|
AM_CONDITIONAL([INSTALL_BASH_COMPLETION], [test -n "${BASH_COMPLETION_DIR}"])
|
||||||
[AS_HELP_STRING(
|
AC_SUBST([BASH_COMPLETION_DIR])
|
||||||
[--enable-shared],
|
|
||||||
[build shared libraries (deprecated, ignored)])])
|
|
||||||
AC_ARG_ENABLE(
|
|
||||||
[static],
|
|
||||||
[AS_HELP_STRING(
|
|
||||||
[--enable-static],
|
|
||||||
[build static libraries (deprecated, ignored)])])
|
|
||||||
|
|
||||||
# Check for --build and --host...
|
# Check for --build and --host...
|
||||||
AC_CANONICAL_BUILD
|
AC_CANONICAL_BUILD
|
||||||
|
Loading…
Reference in New Issue
Block a user