[HEADS UP] perl symlinks in /usr/bin will be gone
Frerich Raabe
raabe at kde.org
Sun Jan 30 03:08:21 PST 2005
On Sunday 30 January 2005 11:44, Lev Serebryakov wrote:
> AB> Unless I hear too many cries "don't do that" (with justification), I
> AB> plan to not create any perl symlinks in /usr/bin in the forthcoming
> AB> upgrade of both lang/perl5.8 (to 5.8.6) and lang/perl5 (to 5.6.2).
>
> AB> In practical terms this will mean a one-time sweep of your scripts in
> AB> order to convert them, in a typical case, from #! /usr/bin/perl to
> AB> #! /usr/local/bin/perl.
> In all scripts of all my friends, who have hosting on my server & use
> perl scripts? NO, THANKS!
Don't despair, ironically Perl itself can solve this problem for you, using
something like
find /some/directory -type f -print0 | \
xargs -0 perl -pi -e 's,^#! ?/usr(/local)?/bin/perl,#!/usr/bin/env perl'
- Frerich
--
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050130/681728ee/attachment.bin
More information about the freebsd-stable
mailing list