Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2005 12:08:14 +0100
From:      Frerich Raabe <raabe@kde.org>
To:        Lev Serebryakov <lev@serebryakov.spb.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: [HEADS UP] perl symlinks in /usr/bin will be gone
Message-ID:  <200501301208.19650.raabe@kde.org>
In-Reply-To: <1985053043.20050130134456@serebryakov.spb.ru>
References:  <20050129202425.GA56998@heechee.tobez.org> <1985053043.20050130134456@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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?"

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQBB/MAj+Cc0VGj85/ARAvc7AJwM+4bgP4p+zXsPA45vZ3s3K4hrkwCgnfmC
s4Me86yCK6YKHmmQXUqhpqk=
=fS0G
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501301208.19650.raabe>