]> git.donarmstrong.com Git - debhelper.git/commitdiff
r366: * dh_strip: now knows about the DEB_BUILD_OPTIONS=nostrip thing.
authorjoey <joey>
Sun, 20 Aug 2000 23:30:30 +0000 (23:30 +0000)
committerjoey <joey>
Sun, 20 Aug 2000 23:30:30 +0000 (23:30 +0000)
debian/changelog
dh_strip

index 05c64c44da7ed28a97546775bf9ef195e2d7e4ab..c5bc10d2d620269456d15b02fe99db01188fc770 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (2.1.6) unstable; urgency=low
+
+  * dh_strip: now knows about the DEB_BUILD_OPTIONS=nostrip thing.
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 20 Aug 2000 16:28:31 -0700
+
 debhelper (2.1.5) unstable; urgency=low
 
   * dh_installxfonts: corrected a problem during package removal that was
index b39d46554f01fa3b6eecdd3da41c31d553aa58c8..b150192035c93dcf84061bcdb881a7c3ec80627b 100755 (executable)
--- a/dh_strip
+++ b/dh_strip
@@ -6,6 +6,11 @@ use File::Find;
 use Debian::Debhelper::Dh_Lib;
 init();
 
+# This variable can be used to turn off stripping (see Policy).
+if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~ /nostrip/) {
+       exit;
+}
+
 # Check if a file is an elf binary, shared library, or static library,
 # for use by File::Find. It'll fill the following 3 arrays with anything
 # it finds: