]> git.pld-linux.org Git - packages/rpmlint.git/blob - bash-completion.patch
90450ff3e3c1f5980ccfd57fdc312aa164a73adb
[packages/rpmlint.git] / bash-completion.patch
1 --- rpmlint-1.6/Makefile~       2014-07-19 16:05:09.000000000 +0300
2 +++ rpmlint-1.6/Makefile        2014-09-18 15:36:35.380436188 +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 @@ -41,14 +42,13 @@
12         cp -p *.py *.pyo $(DESTDIR)$(LIBDIR)
13         cp -p rpmlint rpmdiff $(DESTDIR)$(BINDIR)
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 -s rpmlint $(DESTDIR)$$compdir/rpmdiff ; \
24 +               mkdir -p $(DESTDIR)$(bash_compdir); \
25 +               cp -p rpmlint.bash-completion $(DESTDIR)$(bash_compdir)/rpmlint ; \
26 +               ln -s rpmlint $(DESTDIR)$(bash_compdir)/rpmdiff ; \
27         fi
28         cp -p rpmdiff.1 rpmlint.1 $(DESTDIR)$(MANDIR)/man1
29  
This page took 0.059292 seconds and 2 git commands to generate.