[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Portschecker
- To: ports@openbsd.org
- Subject: Portschecker
- From: Han <han@mijncomputer.nl>
- Date: Fri, 17 Aug 2001 21:41:18 +0200
- Content-Disposition: inline
- Mail-Followup-To: ports@openbsd.org
- User-Agent: Mutt/1.3.20i
Hi,
I am the worst coder in the world and so I wrote this script:
#!/bin/sh
pkg_info |sort> /tmp/pkglist
cat /tmp/pkglist|sed 's/-.*//g'> /tmp/pkgs
for NAME in $(cat /tmp/pkgs) ; do
cat /usr/ports/*/$NAME/Makefile|grep DISTNAME=|sed 's/DISTNAME=//g' > /tmp/avail;
cat /tmp/pkglist|grep $NAME|sed 's/ .*//g' > /tmp/install;
diff -y -w20 --suppress-common-lines /tmp/install /tmp/avail
done
This piece off exploitable and buggy shell-script prints a list with
ports that can be updated. Well sometimes.
It would be quite practical if it would work decently. Anybody would
like to improve it? Has an alternative allready been made?
Cya, Han.