[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script-with-language-extension




On 9 Mar 2014 19:52, "Daniel Lintott" <daniel@serverb.co.uk> wrote:
>
> Hi,
>
> I am in the process packaging Net::Frame::Device
> (libnet-frame-device-perl) as part of a the fix to a bug.
>
> 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'
>
> Which does identify the files correctly... I'm just not sure where to go
> from here!
<SNIP>

How about:

find $(TMP)/usr/bin -name "*.pl" -exec rename 's/\.pl$//' {} +

Just make sure you do it at build time, not install time.

Will be interesting to hear others thoughts.

HTH

--
Kind Regards,
Dave Walker


Reply to: