2016-08-25 18:42:57 +00:00
|
|
|
From 5b77e510eb6e4b649c53ab0790cdc9fdf0c85be9 Mon Sep 17 00:00:00 2001
|
2016-04-05 19:28:47 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Wed, 3 Apr 2013 14:35:34 -0400
|
2018-01-17 17:41:25 +00:00
|
|
|
Subject: [PATCH 022/123] Move bash completion script (#922997)
|
2016-04-05 19:28:47 +00:00
|
|
|
|
|
|
|
Apparently these go in a new place now.
|
|
|
|
---
|
|
|
|
configure.ac | 11 +++++++++++
|
|
|
|
util/bash-completion.d/Makefile.am | 1 -
|
|
|
|
2 files changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2018-01-17 17:41:25 +00:00
|
|
|
index 9ddfc5323..ab9134c86 100644
|
2016-04-05 19:28:47 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
|
|
|
@@ -287,6 +287,14 @@ AC_SUBST(grubdirname)
|
|
|
|
AC_DEFINE_UNQUOTED(GRUB_DIR_NAME, "$grubdirname",
|
|
|
|
[Default grub directory name])
|
|
|
|
|
|
|
|
+PKG_PROG_PKG_CONFIG
|
|
|
|
+AS_IF([$($PKG_CONFIG --exists bash-completion)], [
|
|
|
|
+ bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
|
|
|
|
+] , [
|
|
|
|
+ bashcompletiondir=${datadir}/bash-completion/completions
|
|
|
|
+])
|
|
|
|
+AC_SUBST(bashcompletiondir)
|
|
|
|
+
|
|
|
|
#
|
|
|
|
# Checks for build programs.
|
|
|
|
#
|
2016-08-25 18:42:57 +00:00
|
|
|
@@ -476,6 +484,9 @@ HOST_CFLAGS="$HOST_CFLAGS $grub_cv_cc_w_extra_flags"
|
2016-04-05 19:28:47 +00:00
|
|
|
# Check for target programs.
|
|
|
|
#
|
|
|
|
|
|
|
|
+# This makes sure pkg.m4 is available.
|
|
|
|
+m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
|
|
|
|
+
|
|
|
|
# Find tools for the target.
|
|
|
|
if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
|
|
|
|
tmp_ac_tool_prefix="$ac_tool_prefix"
|
|
|
|
diff --git a/util/bash-completion.d/Makefile.am b/util/bash-completion.d/Makefile.am
|
2018-01-17 17:41:25 +00:00
|
|
|
index 136287cf1..61108f054 100644
|
2016-04-05 19:28:47 +00:00
|
|
|
--- a/util/bash-completion.d/Makefile.am
|
|
|
|
+++ b/util/bash-completion.d/Makefile.am
|
|
|
|
@@ -6,7 +6,6 @@ EXTRA_DIST = $(bash_completion_source)
|
|
|
|
|
|
|
|
CLEANFILES = $(bash_completion_script) config.log
|
|
|
|
|
|
|
|
-bashcompletiondir = $(sysconfdir)/bash_completion.d
|
|
|
|
bashcompletion_DATA = $(bash_completion_script)
|
|
|
|
|
|
|
|
$(bash_completion_script): $(bash_completion_source) $(top_builddir)/config.status
|
|
|
|
--
|
2018-01-17 17:41:25 +00:00
|
|
|
2.14.3
|
2016-04-05 19:28:47 +00:00
|
|
|
|