From owner-freebsd-ports@FreeBSD.ORG Sat Oct 20 11:24:43 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 7E1D116A419 for ; Sat, 20 Oct 2007 11:24:43 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [82.208.36.70]) by mx1.freebsd.org (Postfix) with ESMTP id 4D01113C468 for ; Sat, 20 Oct 2007 11:24:43 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 6D4CC19E02A; Sat, 20 Oct 2007 13:24:41 +0200 (CEST) Received: from [192.168.1.2] (r3a200.net.upc.cz [213.220.192.200]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id C319A19E027; Sat, 20 Oct 2007 13:24:38 +0200 (CEST) Message-ID: <4719E5DD.60103@quip.cz> Date: Sat, 20 Oct 2007 13:26:21 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: =?ISO-8859-1?Q?Beat_G=E4tzi?= References: <4719CE07.5000904@chruetertee.ch> In-Reply-To: <4719CE07.5000904@chruetertee.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-ports@freebsd.org Subject: Re: 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 11:24:43 -0000 Beat Gätzi wrote: > 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 It would be better if one can omit -p. Then pkg_updating will be more "compatible" with other pkg_* commands (e.g. pkg_info which shows all installed packages without any argument or just info for given package[s]. (so one can use `pkg_updating apache mysql` and get information for both) Anyway your work is good! regards Miroslav Lachman