summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-04-27 19:49:20 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-04-27 19:49:20 +0400
commitefddf2731289083f66d9cd3f748d051c83509046 (patch)
treed943082ff9d19ff0795b022ebbf30f8567c862ef
parent8db9830d7dad98ee609d422fe9a4c92cb43bcf4c (diff)
downloaddh-illumos-efddf2731289083f66d9cd3f748d051c83509046.tar.gz
dh-illumos (9.5.8) unstable; urgency=lowv9.5.8
* Allow passing arbitrary options to tar in dh_illumos_gate
-rw-r--r--debian/changelog6
-rwxr-xr-xdh_illumos_gate18
2 files changed, 21 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index d148b6a..b183daf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+dh-illumos (9.5.8) unstable; urgency=low
+
+ * Allow passing arbitrary options to tar in dh_illumos_gate
+
+ -- Igor Pashev <pashev.igor@gmail.com> Sat, 27 Apr 2013 19:47:50 +0400
+
dh-illumos (9.5.7) unstable; urgency=low
* dh-illumos depends on onbld (for cw and aw)
diff --git a/dh_illumos_gate b/dh_illumos_gate
index 5efe85b..c4d2285 100755
--- a/dh_illumos_gate
+++ b/dh_illumos_gate
@@ -13,7 +13,7 @@ use Cwd;
=head1 SYNOPSIS
-B<dh_illumos_gate> [S<I<debhelper options>>] [B<-B>] [B<-X>I<PATTERN>]
+B<dh_illumos_gate> [S<I<debhelper options>>] [B<-B>] [B<-X>I<PATTERN>] [-- [tar options]]
[files and/or directories to extract]
=head1 DESCRIPTION
@@ -79,6 +79,10 @@ then add F<usr/src/uts/common/sys/>
dh_illumos_gate usr/src/Makefile\*
+=item Unpack all header files under F<usr/src/uts>
+
+ dh_illumos_gate -- --wildcards-match-slash usr/src/uts/*.h
+
=back
=head1 FILES
@@ -155,8 +159,16 @@ if (@ARGV) {
push @to_extract, 'usr';
}
-doit('tar', '-x', '-f', $tarball, @tar_X, '--wildcards', '--strip-components=1',
- map {'illumos-gate/' . $_} @to_extract);
+my @to_extract_real = ();
+foreach my $p (@to_extract) {
+ if ($p =~ /^-/) {
+ push @to_extract_real, $p; #XXX: tar option
+ } else {
+ push @to_extract_real, 'illumos-gate/' . $p; #XXX: path
+ }
+}
+
+doit('tar', '-x', '-f', $tarball, @tar_X, '--wildcards', '--strip-components=1', @to_extract_real);
=item Saving original files