Add portsinfo, which generate list of new ports for last two weeks.

This commit is contained in:
Wolfram Schneider 1997-04-25 14:14:39 +00:00
parent be4952f1df
commit 52b8453b47
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25137
2 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $Id$
# $Id: README,v 1.8 1997/02/22 14:08:16 peter Exp $
This directory is for tools.
@ -15,3 +15,4 @@ tcl_bmake generates a bmake Makefile for src/lib/libtcl
kdrv KernelDriver; add/list/remove third-party kernel driver
source to/in/from a kernel source tree.
scsi-defects Get at the primary or grown defect list of a SCSI disk.
portsinfo Generate list of new ports for last two weeks.

View File

@ -0,0 +1,21 @@
#!/bin/sh
# Copyright (c) April 1997 Wolfram Schneider <wosch@FreeBSD.org>, Berlin.
#
# portsinfo - Generate list of new ports for last two weeks.
#
# $Id$
url=http://www.de.freebsd.org/de/cgi/ports.cgi
time='?type=new&time=2+week+ago&sektion=all'
lynx -nolist -dump "$url$time" | grep -v "Description _:_" |
perl -ne 's/_$//; s/:_ /: /; s/^(\s+)_/$1/; print if (/Main/ .. /____/)' |
perl -ne 'if (/Main Category/) {
print; for(1..50) {print "="}; print "\n";
} else { print}'
echo "This information was produced at `date -u +'%Y/%m/%d %H:%M UTC'` by"
echo "$url"