From 6406ae9eea2801cfb86be0cd139c78f2c4107103 Mon Sep 17 00:00:00 2001 From: Marc Chantreux Date: Wed, 26 Aug 2009 01:40:23 +0200 Subject: [PATCH] honor the DESTDIR environement variable when set for exemple: when you use install_misc/environment_Makefile.PL DESTDIR=$HOME by default but koha is installed in $HOME/koha-dev that is not expected! Signed-off-by: Galen Charlton --- Makefile.PL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index d0e7460135..64e5781567 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -850,7 +850,10 @@ be run from the current directory. Configuration directory:); # FIXME - home directory portability consideration apply - $install_base_default = (exists $ENV{'HOME'}) ? "$ENV{'HOME'}/koha-dev" : "$defaults->{'INSTALL_BASE'}-dev"; + $install_base_default = + $ENV{DESTDIR} + || ( exists $ENV{HOME} ? "$ENV{HOME}/koha-dev" : "$defaults->{'INSTALL_BASE'}-dev" ) + ; } elsif ($config{'INSTALL_MODE'} eq 'single') { $msg = "\nPlease specify the directory in which to install Koha"; # FIXME -- we're assuming under a 'single' mode install -- 2.39.2