Re: Editing #!/usr/local/bin/perl lines in demos in new package.
>As I've mentioned, I'm putting together a new package for a perl
>module, and it has a couple of executables. Unfortunately they're
>perl scripts that start out #!/usr/local/bin/perl. Should I try and
>go through all the places in the source that do this and change them
>to #!/usr/bin/perl, or is this common enough that we might want to
>have a symbolic link?
I'd vote for editing the files at package build time (and, in
particular, keeping the edits out of the diffs). From my Majordomo
package, in debian.rules:
cd debian-tmp/usr/lib/majordomo && \
perl -pi -e 's?^\#!/usr/local/bin/perl?\#!/usr/bin/perl?' \
Richard Kettlewell You are April, you are May,
firstname.lastname@example.org What a stupid thing to say.
Just forgive me and forget that I ever opened my mouth
http://www.elmail.co.uk/staff/richard/ And let it all come out.