From linimon@lonesome.com Mon Dec 23 09:02:37 2002 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11F3C37B401 for ; Mon, 23 Dec 2002 09:02:37 -0800 (PST) Received: from mail.soaustin.net (mail.soaustin.net [207.200.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2519643EEA for ; Mon, 23 Dec 2002 09:02:36 -0800 (PST) (envelope-from linimon@lonesome.com) Received: from lonesome.lonesome.com (cs2876-77.austin.rr.com [24.28.76.77]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mail.soaustin.net (Postfix) with ESMTP id C3C9B1424C for ; Mon, 23 Dec 2002 11:02:18 -0600 (CST) Received: from lonesome.lonesome.com (localhost.lonesome.com [127.0.0.1]) by lonesome.lonesome.com (8.12.6/8.12.3) with ESMTP id gBNH3EWm054527 for ; Mon, 23 Dec 2002 11:03:15 -0600 (CST) (envelope-from linimon@lonesome.lonesome.com) Received: (from linimon@localhost) by lonesome.lonesome.com (8.12.6/8.12.6/Submit) id gBNH3EuR054526; Mon, 23 Dec 2002 11:03:14 -0600 (CST) (envelope-from linimon) Message-Id: <200212231703.gBNH3EuR054526@lonesome.lonesome.com> Date: Mon, 23 Dec 2002 11:03:14 -0600 (CST) From: Mark Linimon Reply-To: To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: new shell script to display PRs by port in HTML X-Send-Pr-Version: 3.113.1 X-GNATS-Notify: >Number: 46500 >Category: www >Synopsis: new shell script to display PRs by port in HTML >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-www >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 23 09:10:00 PST 2002 >Closed-Date: Thu Feb 06 20:34:07 PST 2003 >Last-Modified: Thu Feb 06 20:34:07 PST 2003 >Originator: Mark Linimon >Release: FreeBSD-4.7 >Organization: FreeBSD >Environment: System: FreeBSD lonesome.lonesome.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Nov 8 23:46:29 CST 2002 root@lonesome.lonesome.com:/usr/src/sys/compile/MULTIMEDIA i386 >Description: Here's a convenient script for creating an HTML page that attempts to list all open port PRs by portname. This would be a nice addition to the bento pages, but could be more generally useful. It only needs a local GNATS installation (in /usr/gnats) and a local /usr/ports/INDEX to run. Since it uses the underlying GNATS text search to correlate with portname, it won't be 100% accurate. A disclaimer is included on the HTML output. But, it should be a good start for quickly finding out if someone else has a PR in for a port you're looking at. Also, for the same reason, the script runs somewhat slowly, so it wouldn't be suitable for use as a cgi. I don't know if this would best be put into /usr/ports/Tools/scripts, or /usr/www/tools/prstats, or somewhere else. >How-To-Repeat: N/A >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # postportprs # echo x - postportprs sed 's/^X//' >postportprs << 'END-of-postportprs' X#! /bin/sh X# $FreeBSD$ X# For each port in /usr/ports/INDEX, generate a link to each of its current PRs X# and publish the result as a web page. Xindex="/usr/ports/INDEX" Xecho "Current FreeBSD Problem Reports by portname" Xecho "" Xecho "

Report generated on `date`.

" Xecho "

" Xecho "For explanatory information, see the note below." Xecho "

" Xecho "" Xecho "" Xfor i in `sed -e "s@|/usr/ports/@!@1" $index | sed -e "s@|.*@@" | sed -e "s@^.*!@@" | sort` Xdo X pr=`query-pr -c ports -x -t "$i" -q 2> /dev/null | sed -e "s/^[ ]*//;s/ .*//"` X if [ "$pr" != "" ] ; then X echo -n "" X echo X fi Xdone Xecho "
category/portnamecurrent PRs
$i" X for pr in `query-pr -c ports -x -t "$i" -q 2> /dev/null | sed -e "s/^[ ]*//;s/ .*//"` X do X echo -n "$pr " X done X echo "
" Xecho "

" Xecho "" Xecho "Note: this page is based on simple GNATS queries, which give" Xecho "false indications in the following two cases:" Xecho "

" Xecho "" Xecho "" X# END-of-postportprs exit >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: edwin State-Changed-When: Thu Feb 6 20:33:35 PST 2003 State-Changed-Why: Date: Thu, 6 Feb 2003 22:31:32 -0600 From: Mark Linimon To: Edwin Groothuis close my www/46500. The other work I've done completely supplants it. I think I asked publically for it to be closed but no one did. Thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=46500 >Unformatted: