[Libguestfs] [PATCH 2/2] bash-completion: Install symbolic links instead of copies of files (RHBZ#1156298).

Richard W.M. Jones rjones at redhat.com
Fri Oct 24 08:14:31 UTC 2014


---
 bash/Makefile.am | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/bash/Makefile.am b/bash/Makefile.am
index e8c33d4..10f0861 100644
--- a/bash/Makefile.am
+++ b/bash/Makefile.am
@@ -35,9 +35,14 @@ scripts = \
 	virt-sparsify \
 	virt-sysprep
 
+# Note: Don't distribute the symbolic links, only the real files.
 EXTRA_DIST = \
 	README \
-	$(scripts)
+	guestfish \
+	guestmount \
+	virt-alignment-scan \
+	virt-rescue \
+	virt-resize
 
 # Some of the scripts are simply symbolic links.
 virt-cat:
@@ -80,6 +85,12 @@ if HAVE_BASH_COMPLETION
 # Bash completion script.
 
 bashcompletiondir = $(BASH_COMPLETIONS_DIR)
-bashcompletion_DATA = $(scripts)
+#bashcompletion_DATA = $(scripts)
+
+all-local: $(scripts)
+
+install-data-local: $(scripts)
+	$(mkdir_p) $(DESTDIR)$(bashcompletiondir)
+	cp -d $(scripts) $(DESTDIR)$(bashcompletiondir)
 
 endif
-- 
2.0.4




More information about the Libguestfs mailing list