Re: executable scripts in debian/
On Saturday 25 October 2008 01:01:19 Eric Cooper wrote:
> I need to run a script as part of debian/rules. I can't rely on it
> being executable when unpacked, since dpkg-source doesn't preserve the
> mode.
>
> I can explicitly call its interpreter (Perl in this case):
> /usr/bin/perl debian/my-script ....
> or I can set it executable each time:
> chmod +x debian/my-script
> debian/my-script ...
>
> Is there a preferred approach? Thanks.
I'd choose the latter approach, so that any options given to the interpreter
in the shebang line are honoured.
Thanks, Kel.
Reply to: