[Koha-patches] [PATCH] honor the DESTDIR environement variable when set
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Wed Aug 26 01:40:23 CEST 2009
From: Marc Chantreux <marc.chantreux at biblibre.com>
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!
---
Makefile.PL | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index 721fcd0..a92af60 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
--
1.6.0.4
More information about the Koha-patches
mailing list