Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2005 21:18:36 +1100
From:      Sam Lawrance <boris@brooknet.com.au>
To:        scott@sremick.net
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Sort specific category by added date?
Message-ID:  <41E4F97C.5010508@brooknet.com.au>
In-Reply-To: <20050112074137.7216.qmail@web53605.mail.yahoo.com>
References:  <20050112074137.7216.qmail@web53605.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott I. Remick wrote:

>Is there a way (web-based or command-line) to get a list of all the ports in
>a specific category sorted by their added (not modified/updated) date?
>
>For example: I want a list of all the games, sorted by those added most
>recently first.
>
>I can't seem to come up with a trick, but then again, I'm not all that
>skilled (but still learning!)...
>
>Thanks!
>_______________________________________________
>freebsd-ports@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>
>
>  
>
I was going to suggest looking at the "Date created" which is at the top 
of just about every port Makefile, but there are spelling errors and the 
format varies a little.

Something like the following might help. It extracts the date that the 
first revision of the Makefile was added. You'll need a copy of the 
ports tree with which you can use 'cvs'. Run it inside a category directory.

cd /usr/ports/games
for i in *; do
    echo -n `cvs log -r1.1 $i/Makefile | grep "date:" | cut -c 7-25`; 
echo " $i";
done | sort

Needs a bit of tweaking, but you get the idea. The output for 'games' is 
at http://sam.stral.net/freebsd/games-added-date.txt

-- 
Sam Lawrance    ph +61 0425 228 579    freenode: deft



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