]> git.pld-linux.org Git - packages/rpmlint.git/blob - bash-completion.patch
07395cae68c9aa22c479cdcf5255bc8b424f6417
[packages/rpmlint.git] / bash-completion.patch
1 --- rpmlint-1.7/Makefile~       2015-07-15 15:10:27.000000000 +0300
2 +++ rpmlint-1.7/Makefile        2015-07-15 15:12:32.665044829 +0300
3 @@ -10,6 +10,7 @@
4  LIBDIR=/usr/share/rpmlint
5  ETCDIR=/etc
6  MANDIR=/usr/share/man
7 +bash_compdir=$(shell pkg-config --variable=completionsdir bash-completion 2>/dev/null)
8  
9  FILES = rpmlint *.py INSTALL README README.devel COPYING tools/*.py \
10         Makefile config rpmdiff rpmdiff.1 rpmlint.bash-completion rpmlint.1 \
11 @@ -48,14 +48,13 @@
12                 chmod +x $(DESTDIR)$(BINDIR)/$$file ; \
13         done
14         cp -p config $(DESTDIR)$(ETCDIR)/$(PACKAGE)
15 -       compdir=`pkg-config --variable=completionsdir bash-completion 2>/dev/null` ; \
16 -       if [ "x$$compdir" = "x" ] ; then \
17 +       if [ "x$(bash_compdir)" = "x" ] ; then \
18                 mkdir -p $(DESTDIR)$(ETCDIR)/bash_completion.d ; \
19                 cp -p rpmlint.bash-completion $(DESTDIR)$(ETCDIR)/bash_completion.d/rpmlint ; \
20         else \
21 -               mkdir -p $(DESTDIR)$$compdir ; \
22 -               cp -p rpmlint.bash-completion $(DESTDIR)$$compdir/rpmlint ; \
23 -               ln -sf rpmlint $(DESTDIR)$$compdir/rpmdiff ; \
24 +               mkdir -p $(DESTDIR)$(bash_compdir) ; \
25 +               cp -p rpmlint.bash-completion $(DESTDIR)$(bash_compdir)/rpmlint ; \
26 +               ln -sf rpmlint $(DESTDIR)$(bash_compdir)/rpmdiff ; \
27         fi
28         cp -p rpmdiff.1 rpmlint.1 $(DESTDIR)$(MANDIR)/man1
29  
This page took 0.102032 seconds and 2 git commands to generate.