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
--nextPart2482989.fHlQjUBQUU
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=
=20
something like=20

find /some/directory -type f -print0 | \
	xargs -0 perl -pi -e 's,^#! ?/usr(/local)?/bin/perl,#!/usr/bin/env perl'

=2D Frerich

=2D-=20
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
=46reeBSD: "Are you guys coming, or what?"

--nextPart2482989.fHlQjUBQUU
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

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

--nextPart2482989.fHlQjUBQUU--



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