Migration to new SourceForge url scheme now inevitable, solution

Philip M. Gollucci pgollucci at p6m7g8.com
Thu Aug 20 04:08:09 UTC 2009


Dmitry Marakasov wrote:
> [1] http://people.freebsd.org/~amdmi3/sf.pl.txt
Awesome.

Rewriting this:
my $portname = `make -VPORTNAME`;
chomp $portname;
my $portname_lc = lc($portname);

my $portversion = `make -VPORTVERSION`;
chomp $portversion;

Like this, will help substantially by reducing make spawns by 1/2,
you'll notice the ports tinderbox code does this too :)

my @lines = lc `make -V PORTNAME -V PORTVERSION`;
my $portname = $lines[0]; chomp $portname;
my $portversion = $lines[1]; chomp $portversion;

(untested)

> [2] http://people.freebsd.org/~amdmi3/sourceforge-subdirs.txt
> [3] http://people.freebsd.org/~amdmi3/sourceforge-subdirs-top.txt



-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
Consultant          - P6M7G8 Inc.                http://p6m7g8.net
Senior Sys Admin    - RideCharge, Inc.           http://ridecharge.com
ASF Member          - Apache Software Foundation http://apache.org
FreeBSD Committer   - FreeBSD Foundation         http://freebsd.org

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


More information about the freebsd-ports mailing list