[SCM] Debian packaging of libnet-bluetooth-perl branch, master, updated. 31e5726b8c9f44f7dda5d789b6852c440b1c6459

gregor herrmann gregoa at debian.org
Sun Nov 4 14:52:13 UTC 2012


The following commit has been merged in the master branch:
commit 32b07fe43b92c291a39d34af33a8841815ba48a4
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Nov 4 15:33:00 2012 +0100

    Replace proper-interpreter-in-samples.patch with an override in debian/rules.

diff --git a/debian/patches/proper-interpreter-in-samples.patch b/debian/patches/proper-interpreter-in-samples.patch
deleted file mode 100755
index 099e925..0000000
--- a/debian/patches/proper-interpreter-in-samples.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-Description: add shebang to samples
-Forwarded: no
-Author: Rene Mayorga <rmayorga at debian.org>
-Reviewed-by: Jonathan Yu <jawnsy at cpan.org>
-
---- a/samples/client_connection
-+++ b/samples/client_connection
-@@ -1,3 +1,5 @@
-+#!/usr/bin/perl
-+
- use Net::Bluetooth;
- 
- 	#### Create a RFCOMM client
---- a/samples/device_discovery
-+++ b/samples/device_discovery
-@@ -1,3 +1,5 @@
-+#!/usr/bin/perl
-+
- use Net::Bluetooth;
-                                                                                                                    
- 	#### list all remote devices in the area
---- a/samples/get_gps_data
-+++ b/samples/get_gps_data
-@@ -1,3 +1,5 @@
-+#!/usr/bin/perl
-+
- use Net::Bluetooth;
- $| = 1;
- 
---- a/samples/server_and_service_registration
-+++ b/samples/server_and_service_registration
-@@ -1,3 +1,5 @@
-+#!/usr/bin/perl
-+
- use Net::Bluetooth;
- 
- 	#### Create a RFCOMM server
---- a/samples/service_discovery
-+++ b/samples/service_discovery
-@@ -1,3 +1,5 @@
-+#!/usr/bin/perl
-+
- use Net::Bluetooth;
-                                                                                                                          
- 	#### About the sdp_search call:
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index ac9327a..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-proper-interpreter-in-samples.patch
diff --git a/debian/rules b/debian/rules
index 2d33f6a..7516df8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,11 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
 	dh $@
+
+override_dh_installexamples:
+	dh_installexamples
+	sed -i -e '1i #!/usr/bin/perl\n' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*

-- 
Debian packaging of libnet-bluetooth-perl



More information about the Pkg-perl-cvs-commits mailing list