aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/debhelper/files/patch-Makefile
blob: 30f656cbfe57cb5f8c5761fbdb062dbbf7cc1aa3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- Makefile.orig   2014-11-16 15:43:09 UTC
+++ Makefile
@@ -1,5 +1,5 @@
 # List of files of dh_* commands. Sorted for debhelper man page.
-COMMANDS=$(shell find . -maxdepth 1 -type f -perm /100 -name "dh_*" -printf "%f\n" | sort)
+COMMANDS=$(shell find . -maxdepth 1 -type f -perm +a+x -name "dh_*" -print | cut -c3- | sort)
 
 # Find deprecated commands by looking at their synopsis.
 DEPRECATED=$(shell egrep -l '^dh_.* - .*deprecated' $(COMMANDS))
@@ -88,17 +88,16 @@ endif
    done;
 
 install:
-   install -d $(DESTDIR)$(PREFIX)/bin \
-       $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts \
-       $(DESTDIR)$(PERLLIBDIR)/Sequence \
-       $(DESTDIR)$(PERLLIBDIR)/Buildsystem
+   install -d \
+       $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Sequence \
+       $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Buildsystem
    install dh $(COMMANDS) $(DESTDIR)$(PREFIX)/bin
-   install -m 0644 autoscripts/* $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts
-   install -m 0644 Debian/Debhelper/*.pm $(DESTDIR)$(PERLLIBDIR)
+   install -m 0644 autoscripts/* $(DESTDIR)$(PREFIX)/bin
+   install -m 0644 Debian/Debhelper/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper
    [ "$(PREFIX)" = /usr ] || \
-       sed -i '/$$prefix=/s@/usr@$(PREFIX)@g' $(DESTDIR)$(PERLLIBDIR)/Dh_Lib.pm
-   install -m 0644 Debian/Debhelper/Sequence/*.pm $(DESTDIR)$(PERLLIBDIR)/Sequence
-   install -m 0644 Debian/Debhelper/Buildsystem/*.pm $(DESTDIR)$(PERLLIBDIR)/Buildsystem
+       sed -i '' '/$$prefix=/s@/usr@$(PREFIX)@g' $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Dh_Lib.pm
+   install -m 0644 Debian/Debhelper/Sequence/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Sequence
+   install -m 0644 Debian/Debhelper/Buildsystem/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Buildsystem
 
 test: version
    ./run perl -MTest::Harness -e 'runtests grep { ! /CVS/ && ! /\.svn/ && -f && -x } @ARGV' t/* t/buildsystems/*