summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1997-09-29 18:16:38 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1997-09-29 18:16:38 +0000
commitb3b892f2885c1d9a5f6f3369f7b5636db6c8a3ab (patch)
treefb854a3ef6fb907d0a28bb727b2a47b53cf8e07f /tools
parent7a6b5d25b71a124c4bf7f157f5c1252c30513594 (diff)
downloadsrc-test2-b3b892f2885c1d9a5f6f3369f7b5636db6c8a3ab.tar.gz
src-test2-b3b892f2885c1d9a5f6f3369f7b5636db6c8a3ab.zip
Notes
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/portsinfo/portsinfo.sh77
1 files changed, 70 insertions, 7 deletions
diff --git a/tools/tools/portsinfo/portsinfo.sh b/tools/tools/portsinfo/portsinfo.sh
index d4b218e09d87..340885ce3cfa 100644
--- a/tools/tools/portsinfo/portsinfo.sh
+++ b/tools/tools/portsinfo/portsinfo.sh
@@ -3,19 +3,82 @@
#
# portsinfo - Generate list of new ports for last two weeks.
#
-# $Id: portsinfo,v 1.3 1997/05/28 19:51:20 wosch Exp wosch $
+# $Id: portsinfo,v 1.9 1997/07/26 10:00:06 wosch Exp $
PATH=/bin:/usr/bin:/usr/local/bin:$PATH; export PATH
-url=http://www.de.freebsd.org/de/cgi/ports.cgi
+host=http://www.freebsd.org
+url=$host/cgi/ports.cgi
time='?type=new&time=2+week+ago&sektion=all'
+time2='?type=changed&time=2+week+ago&sektion=all'
+info=yes
-lynx -nolist -dump -reload -nostatus -underscore "$url$time" |
+if [ x"$info" = xyes ]; then
+
+cat <<'EOF'
+Introduction
+------------
+
+The FreeBSD Ports Collection offers a simple way for users and
+administrators to install applications. Each "port" listed here
+contains any patches necessary to make the original application source
+code compile and run on FreeBSD. Installing an application is as
+simple as downloading the port, unpacking it and typing make in the
+port directory. The Makefile automatically fetches the application
+source code, either from a local disk or via ftp, unpacks it on your
+system, applies the patches, and compiles. If all goes well, simply
+type make install to install the application.
+
+For more information about using ports, see the ports collection
+
+ http://www.freebsd.org/handbook/ports.html
+and
+ http://www.freebsd.org/ports/
+
+EOF
+
+ lynx -dump $host/ports/ |
+ perl -ne '/^[ ]*There are currently/ && s/^\s+// && print && exit'
+
+cat <<EOF
+
+
+New ports added last two weeks
+------------------------------
+
+EOF
+
+
+fi
+
+
+lynx -nolist -dump -reload -nostatus "$url$time" |
grep -v "Description :" |
-perl -ne 'print if (/Main/ .. /XX%MXX/)' |
-perl -ne 'if (/Main Category/) {
+perl -ne 'print if (/^\s*Category/ .. /__________________/)' |
+ grep -v ________ |
+perl -ne 'if (/^\s*Category/) {
print; for(1..50) {print "="}; print "\n";
} else { print}'
-echo ""
-echo "This information was produced by $url"
+cat <<EOF
+
+
+Updated ports last two weeks
+-----------------------------------
+
+EOF
+
+lynx -nolist -dump -reload -nostatus "$url$time2" |
+ grep -v "Description :" |
+perl -ne 's/\[INLINE\]\s*//g; print if (/Main/ .. /XXXXYYYYZZZZ/)' |
+perl -ne 'if (/^\s*Category/) {
+ print; for(1..50) {print "="}; print "\n";
+ } else { print}'
+
+cat <<EOF
+
+This information was produced by
+ $url
+
+EOF
+