-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/03/14 00:26, gregor herrmann wrote: > On Sun, 09 Mar 2014 21:39:01 +0000, Dave Walker wrote: > >>> Net::Frame::Device includes two scripts that are installed to >>> /usr/bin, but both have .pl extensions therefore giving me a >>> Lintian warning. >>> >>> My initial thought on fixing this is to rename the files by >>> overriding dh_auto_install in debian/rules... but I'm >>> struggling to find out how to do this without explicitly >>> writing the file names, which wouldn't accommodate new files in >>> future releases. >>> >>> So far I've got the following: >>> >>> PACKAGE = $(shell dh_listpackages) TMP = >>> $(CURDIR)/debian/$(PACKAGE) >>> >>> <SNIP> find $(TMP)/usr/bin -name '*.pl' >>> > >> How about: find $(TMP)/usr/bin -name "*.pl" -exec rename >> 's/\.pl$//' {} + Just make sure you do it at build time, not >> install time. > > Looks good, and similar to existing examples which might be a bit > simpler: > > libvm-ec2-perl/debian/rules: rename 's/\.pl//' > $(TMP)/usr/bin/*.pl libvm-ec2-perl/debian/rules: rename > 's/\.pl//' $(TMP)/usr/share/man/man1/* >
I knew I'd seen it somewhere, but for the life of me couldn't remember which package it was in! Thanks, for the help guys! Cheers, Daniel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQIcBAEBAgAGBQJTHZYLAAoJEMhyZNddc+xuhEwP/jgRWFFqTBJH7+Ss0RGL+x/k o0r3vbxiOn1KDdtk4cQ3goYiAAuycKwphtZ2VOv1ovkUlMOM1fRtkKfAkYkLOE8+ 9BxKvbYS2myHfeIoeT52koKob2xhXv7IJRxywlJTRmgtTgDQaq002K23zY1+Umap XOo/A0Ek8iDlIfcr26v6ygm5AD7sPucMcCvHCwM5N7rchAFR//1rg1Pyi8r32COS 9OCXCsvU5/KDwnRJlZODpZbbBq3kLVLrOjuD7OA8fm0i3+ibM7+pNloQegAa0/UM RKtoUL20b4A8tQA3tJG+3CHWzuTMOgbKgn0K234x08aSr7wtvUxQhJReUrNgCveL j9WY3MN1fPOojjttH/RrrZ29IjhYCLwxBMZrsLR7kiSFQZUo0dQb6XN+JhrDXhXd rNZlmXuKIW0tLENXCZPLWCVnStsO1/xC1hc1164Y12qlKAAiwLJRqJJG6qiU1H14 /HafDbGDKlZA6oEcEYh1s6fTSzC/tsCETjsJHByh9TBqkuaw/5jqk1Ee+LUOBqPJ 2J17GjKgqQYge7WEmN35rdnHIjvIzVxTRejlTsRzUmKHuxoscwIkY7GOy/8jV++G dVyvO6A14Iq63ngEToJ5R/nfotRNvTHsVgnWqMFbi8FcpP/R8S6vWIKo3KTzPFLy 3l7d7HiQHfKeljLXdNG2 =MYWT -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/531d9614.5030...@serverb.co.uk