Blame SOURCES/0024-bash-completion-Install-symbolic-links-instead-of-co.patch

0d20ef
From c4e4abe7b3e36a260685d258258122610eb9193e Mon Sep 17 00:00:00 2001
0d20ef
From: "Richard W.M. Jones" <rjones@redhat.com>
0d20ef
Date: Fri, 24 Oct 2014 09:13:25 +0100
0d20ef
Subject: [PATCH] bash-completion: Install symbolic links instead of copies of
0d20ef
 files (RHBZ#1156298).
0d20ef
0d20ef
(cherry picked from commit a5a0c2f3b047ebb064d54d5029b1d1e475375668)
0d20ef
---
0d20ef
 bash/Makefile.am | 15 +++++++++++++--
0d20ef
 1 file changed, 13 insertions(+), 2 deletions(-)
0d20ef
0d20ef
diff --git a/bash/Makefile.am b/bash/Makefile.am
0d20ef
index e8c33d4..10f0861 100644
0d20ef
--- a/bash/Makefile.am
0d20ef
+++ b/bash/Makefile.am
0d20ef
@@ -35,9 +35,14 @@ scripts = \
0d20ef
 	virt-sparsify \
0d20ef
 	virt-sysprep
0d20ef
 
0d20ef
+# Note: Don't distribute the symbolic links, only the real files.
0d20ef
 EXTRA_DIST = \
0d20ef
 	README \
0d20ef
-	$(scripts)
0d20ef
+	guestfish \
0d20ef
+	guestmount \
0d20ef
+	virt-alignment-scan \
0d20ef
+	virt-rescue \
0d20ef
+	virt-resize
0d20ef
 
0d20ef
 # Some of the scripts are simply symbolic links.
0d20ef
 virt-cat:
0d20ef
@@ -80,6 +85,12 @@ if HAVE_BASH_COMPLETION
0d20ef
 # Bash completion script.
0d20ef
 
0d20ef
 bashcompletiondir = $(BASH_COMPLETIONS_DIR)
0d20ef
-bashcompletion_DATA = $(scripts)
0d20ef
+#bashcompletion_DATA = $(scripts)
0d20ef
+
0d20ef
+all-local: $(scripts)
0d20ef
+
0d20ef
+install-data-local: $(scripts)
0d20ef
+	$(mkdir_p) $(DESTDIR)$(bashcompletiondir)
0d20ef
+	cp -d $(scripts) $(DESTDIR)$(bashcompletiondir)
0d20ef
 
0d20ef
 endif
0d20ef
-- 
0d20ef
1.8.3.1
0d20ef