diff options
author | Christoph Junghans <ottxor@gentoo.org> | 2012-11-12 14:54:43 -0700 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-11-12 18:02:37 -0400 |
commit | 0aa572f1de498231683a555341841d582d813f21 (patch) | |
tree | 10c061593ebbb55f8f5a16b695ed25b82a995733 /Debian/Debhelper/Dh_Lib.pm | |
parent | 20672fd5f4f015d4aac1227af45ff73980194539 (diff) |
Makefile: introduce PREFIX variable
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 7 |
1 files changed, 4 insertions, 3 deletions
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"); } } |