From 0aa572f1de498231683a555341841d582d813f21 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Mon, 12 Nov 2012 14:54:43 -0700 Subject: Makefile: introduce PREFIX variable --- Debian/Debhelper/Dh_Lib.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Debian/Debhelper/Dh_Lib.pm') diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 7b550b0e..0a73b0f4 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -21,6 +21,7 @@ use vars qw(@ISA @EXPORT %dh); &cross_command &set_buildflags &get_buildoption); my $max_compat=10; +my $prefix="/usr"; sub init { my %params=@_; @@ -522,11 +523,11 @@ sub autoscript { $infile="$ENV{DH_AUTOSCRIPTDIR}/$filename"; } else { - if (-e "/usr/share/debhelper/autoscripts/$filename") { - $infile="/usr/share/debhelper/autoscripts/$filename"; + if (-e "$prefix/share/debhelper/autoscripts/$filename") { + $infile="$prefix/share/debhelper/autoscripts/$filename"; } else { - error("/usr/share/debhelper/autoscripts/$filename does not exist"); + error("$prefix/share/debhelper/autoscripts/$filename does not exist"); } } -- cgit v1.2.3