summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-07 19:36:53 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-07 19:40:29 +0300
commit2a0f23cd3cb8c50ab70a9898e6d8c557947bb551 (patch)
treeb14c47da857398fa47e625f398445418ebd67c33
parent91cc157510e2f2ed651684c25b4c51f0ca64342b (diff)
downloaddh-illumos-2a0f23cd3cb8c50ab70a9898e6d8c557947bb551.tar.gz
dh_illumos_make: building in a directory other than the current directory
-rwxr-xr-xdh_illumos_make13
1 files changed, 2 insertions, 11 deletions
diff --git a/dh_illumos_make b/dh_illumos_make
index b42b01a..f02cefb 100755
--- a/dh_illumos_make
+++ b/dh_illumos_make
@@ -118,16 +118,6 @@ foreach (@dirs) {
}
}
-# Build in each dir:
-# Sanity checks:
-foreach (qw/bldenv.sh env.sh/) {
- if ( !-r "usr/$_" ) {
- error(
-"`$_' not found under 'usr/'. Maybe illumos sources were not properly unpacked."
- );
- }
-}
-
my $opts = '';
$opts .= '-d' if $dh{'DEBUG'};
my $onbld = $dh{'NO_ONBLD'} ? '-t' : '+t';
@@ -148,8 +138,9 @@ if ( $dh{'NATIVE'} ) {
}
foreach (@dirs) {
+ my $root = s!(.*)usr/.*!$1!r;
complex_doit(
-qq!ksh93 usr/bldenv.sh $opts usr/env.sh -c "cd $_ && $dh{'MAKE'} $dh{'TARGET'}$override"!
+qq!ksh93 ${root}usr/bldenv.sh $opts ${root}usr/env.sh -c "cd $_ && $dh{'MAKE'} $dh{'TARGET'}$override"!
);
}