[SCM] Debian packaging of libwww-youtube-download-perl branch, master, updated. debian/0.32-1-9-g3d8bd00

gregor herrmann gregoa at debian.org
Sun Oct 16 14:23:43 UTC 2011


The following commit has been merged in the master branch:
commit cd6b48726f43fb3b992859856c00f41a37ebe000
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Oct 16 16:15:54 2011 +0200

    Install the new scripts without the .pl suffix, adjust manpages accordingly.

diff --git a/debian/rules b/debian/rules
index 2d33f6a..89eb131 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,15 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
 	dh $@
+
+override_dh_auto_install:
+	dh_auto_install
+	prename 's/\.pl//' $(TMP)/usr/bin/*
+	prename 's/\.pl//' $(TMP)/usr/share/man/man1/*1p*
+	perl -pi -e 's/(youtube\\?-.+)\.pl/$$1/g' \
+		$(TMP)/usr/bin/* \
+		$(TMP)/usr/share/man/man1/*1p*

-- 
Debian packaging of libwww-youtube-download-perl



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