[debhelper-devel] [debhelper] 01/28: dh_strip: Create ddebs with symlink'ed docs

Niels Thykier nthykier at moszumanska.debian.org
Sun Jun 28 12:57:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 37208716c40f2d4e510750d2200b85b49bdee744
Author: Niels Thykier <niels at thykier.net>
Date:   Wed May 13 17:57:39 2015 +0200

    dh_strip: Create ddebs with symlink'ed docs
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_strip | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dh_strip b/dh_strip
index 3eebee8..2cdd346 100755
--- a/dh_strip
+++ b/dh_strip
@@ -254,6 +254,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 			doit($strip, @opts, $_);
 		}
 	}
+	if ($use_build_id > 1 and -d $debugtmp) {
+		my $ddeb_docdir = "${debugtmp}/usr/share/doc";
+		my $doc_symlink = "${ddeb_docdir}/${package}-dbgsym";
+		if ( not -l $doc_symlink and not -e $doc_symlink ) {
+			install_dir($ddeb_docdir) if not -d $ddeb_docdir;
+			doit('ln', '-s', $package, $doc_symlink);
+		}
+	}
 }
 
 =head1 SEE ALSO

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list