From owner-freebsd-ports@FreeBSD.ORG Sat Oct 20 10:02:47 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 081DC16A417 for ; Sat, 20 Oct 2007 10:02:47 +0000 (UTC) (envelope-from beat@chruetertee.ch) Received: from marvin.chruetertee.ch (marvin.chruetertee.ch [217.150.245.55]) by mx1.freebsd.org (Postfix) with ESMTP id F386613C45B for ; Sat, 20 Oct 2007 10:02:44 +0000 (UTC) (envelope-from beat@chruetertee.ch) Received: from daedalus.network.local (V9926.v.pppool.de [89.57.153.38]) (authenticated bits=0) by marvin.chruetertee.ch (8.13.6/8.13.6) with ESMTP id l9K9i2Sv095137 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Sat, 20 Oct 2007 09:44:03 GMT (envelope-from beat@chruetertee.ch) Message-ID: <4719CE07.5000904@chruetertee.ch> Date: Sat, 20 Oct 2007 11:44:39 +0200 From: =?ISO-8859-1?Q?Beat_G=E4tzi?= User-Agent: Thunderbird 2.0.0.5 (X11/20070728) MIME-Version: 1.0 To: freebsd-ports@freebsd.org X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Project ideas page: UPDATING parser and displayer X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2007 10:02:47 -0000 Hi, I read at the project idea page about the UPDATING parser and displayer. I wrote a small script that parses and displays entries from /usr/ports/UPDATING: pkg_updating With the -p argument only entries for the given portname are shown. Without the -p argument entries for all installed ports are shown. The -f defines an alternative location of the UPDATING file. With the -d argument only newer entries than the given date are shown. Examples: Shows all entries of all installed ports: # pkg_updating Shows all entries of all installed ports since 2007-01-01 # pkg_updating -d 20070101 Shows all entries for all apache ports # pkg_updating -p apache Shows all apache entries since 2006-01-01 # pkg_updating -p apache -d 20060101 Defines that the UPDATING file is in /tmp and shows all entries of all installed ports: # pkg_updating -f /tmp/UPDATING Known issues: - pkg_updating needs a colon at the end of the date line. Some entries don't have this colon. This patch adds the missing colons: http://tmp.chruetertee.ch/pkg_updating/UPDATING.patch pkg_updating is available here: http://tmp.chruetertee.ch/pkg_updating/ Comments, suggestions and patches are very welcome! Beat