[devscripts] 01/01: did without using debian/links for symlinking bash completions

Nicholas Bamber periapt at moszumanska.debian.org
Wed Nov 18 17:44:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

periapt pushed a commit to branch master
in repository devscripts.

commit 4572f3be7948f67ce113016730486c176849790b
Author: Nicholas Bamber <nicholas at periapt.co.uk>
Date:   Wed Nov 18 17:43:47 2015 +0000

    did without using debian/links for symlinking bash completions
---
 debian/links     | 20 --------------------
 scripts/Makefile |  6 ++++++
 2 files changed, 6 insertions(+), 20 deletions(-)

diff --git a/debian/links b/debian/links
index 44d8bfa..c75ebf9 100644
--- a/debian/links
+++ b/debian/links
@@ -11,23 +11,3 @@
 /usr/share/man/fr/man1/pts-subscribe.1.gz	/usr/share/man/fr/man1/pts-unsubscribe.1.gz
 /usr/share/man/man1/debchange.1.gz		/usr/share/man/man1/dch.1.gz
 /usr/share/man/man1/pts-subscribe.1.gz		/usr/share/man/man1/pts-unsubscribe.1.gz
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/wnpp-alert
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/wnpp-check
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/mk-build-deps
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/rmadison
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/mass-bug
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/debsnap
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/dd-list
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/build-rdeps
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/who-uploads
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/transition-check
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/getbuildlog
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/dcontrol
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/grep-excuses
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/rc-alert
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/whodepends
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/dget
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/pts-subscribe
-/usr/share/bash-completion/completions/pkgnames  /usr/share/bash-completion/completions/pts-unsubscribe
-/usr/share/bash-completion/completions/debchange /usr/share/bash-completion/completions/dch
-/usr/share/bash-completion/completions/debi /usr/share/bash-completion/completions/debc
diff --git a/scripts/Makefile b/scripts/Makefile
index 9bfadbf..2012d96 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -22,6 +22,7 @@ COMPL_FILES := $(wildcard *.bash_completion)
 BC_BUILD_DIR:=bash_completion
 COMPLETION = $(patsubst %.bash_completion,$(BC_BUILD_DIR)/%,$(COMPL_FILES))
 COMPL_DIR := $(shell pkg-config --variable=completionsdir bash-completion)
+PKGNAMES:=wnpp-alert wnpp-check mk-build-deps rmadison mass-bug debsnap dd-list build-rdeps who-uploads transition-check getbuildlog dcontrol grep-excuses rc-alert whodepends dget pts-subscribe pts-unsubscribe
 
 GEN_MAN1S += devscripts.1 mk-origtargz.1 uscan.1
 
@@ -94,6 +95,11 @@ install: all
 	ln -sf edit-patch $(DESTDIR)$(BINDIR)/add-patch
 	install -d $(DESTDIR)$(COMPL_DIR)
 	cp $(BC_BUILD_DIR)/* $(DESTDIR)$(COMPL_DIR)/
+	for i in $(PKGNAMES); do                        \
+	    ln -sf pkgnames $(DESTDIR)$(COMPL_DIR)/$$i;  \
+	done
+	ln -sf debchange $(DESTDIR)$(COMPL_DIR)/dch
+	ln -sf debi $(DESTDIR)$(COMPL_DIR)/debc
 	# Special treatment for debpkg
 	install -d $(DESTDIR)$(DATA_DIR)
 	mv $(DESTDIR)$(BINDIR)/debpkg $(DESTDIR)$(DATA_DIR)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list