summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-07-01 23:53:10 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-07-01 23:53:10 +0000
commit83524cf78681aa722a5b67f7c212a4de15d7df1e (patch)
tree6bf17895b44a9da7d94f15c2f37a1faebea27ebc
parentb684bd6e2631138c199c0995efdfb35810678511 (diff)
downloaddh-illumos-83524cf78681aa722a5b67f7c212a4de15d7df1e.tar.gz
Added --debug option to make debug builds
-rwxr-xr-xdh_illumos_make22
1 files changed, 18 insertions, 4 deletions
diff --git a/dh_illumos_make b/dh_illumos_make
index b6fe1ac..c517b70 100755
--- a/dh_illumos_make
+++ b/dh_illumos_make
@@ -12,7 +12,7 @@ use Debian::Debhelper::Dh_Lib;
=head1 SYNOPSIS
B<dh_illumos_make> [S<I<debhelper options>>] [B<-m>I<make program>]
-[B<-t>I<target>] [directories]
+[B<-t>I<target>] [B<--debug>] [directories]
=head1 DESCRIPTION
@@ -26,13 +26,13 @@ in order. Illumos sources should be previously unpacked with L<dh_illumos_gate(1
dh_illumos_gate -t install_h usr/src/uts is equivalent to
cd illumos-gate
- ksh93 bldenv.sh -d illumos.sh -c "cd usr/src/uts && /usr/bin/sunmake install_h"
+ ksh93 bldenv.sh illumos.sh -c "cd usr/src/uts && /usr/bin/sunmake install_h"
dh_illumos_gate -m /opt/SUNWspro/bin/dmake usr/src/lib is equivalent to
cd illumos-gate
- ksh93 bldenv.sh -d illumos.sh -c "cd usr/src/lib && /opt/SUNWspro/bin/dmake install"
+ ksh93 bldenv.sh illumos.sh -c "cd usr/src/lib && /opt/SUNWspro/bin/dmake install"
=head1 OPTIONS
@@ -48,6 +48,16 @@ Make program to use. Default is F</usr/bin/sunmake>.
Target for I<make program>. Default is C<install> which will build
sources and install into proto area.
+=item B<--debug>
+
+Turn on debug build. This will execute
+
+ ksh93 bldenv.sh -d illumos.sh ...
+
+instead of
+
+ ksh93 bldenv.sh illumos.sh ...
+
=back
=head1 NOTES
@@ -63,6 +73,7 @@ $dh{'TARGET'} = 'install';
init(options => {
'make|m=s' => \$dh{'MAKE'},
'target|t=s' => \$dh{'TARGET'},
+ 'debug' => \$dh{'DEBUG'},
});
my @dirs = ('usr/src');
@@ -85,8 +96,11 @@ foreach (qw/bldenv.sh illumos.sh/) {
error("`$_' not found under illumos-gate. Maybe illumos sources were not properly unpacked.")
}
}
+
+my $d = '';
+$d = '-d' if ($dh{'DEBUG'});
foreach (@dirs) {
- complex_doit(qq!cd illumos-gate && ksh93 bldenv.sh -d illumos.sh -c "cd $_ && $dh{'MAKE'} $dh{'TARGET'}"!);
+ complex_doit(qq!cd illumos-gate && ksh93 bldenv.sh $d illumos.sh -c "cd $_ && $dh{'MAKE'} $dh{'TARGET'}"!);
}
=head1 SEE ALSO