=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/Attic/portstat.bld,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- www/Attic/portstat.bld 1998/10/07 21:15:46 1.3 +++ www/Attic/portstat.bld 1999/03/19 21:16:18 1.4 @@ -1,6 +1,6 @@ #! /bin/sh # -# $OpenBSD: portstat.bld,v 1.3 1998/10/07 21:15:46 marc Exp $ +# $OpenBSD: portstat.bld,v 1.4 1999/03/19 21:16:18 marc Exp $ # # Build the OpenBSD port status web page. # Uses the following files: @@ -67,9 +67,9 @@ for d in $f/*; do dd=`basename $d` if [ -d $d -a $dd != CVS ]; then - cmt=`cat $d/pkg/COMMENT` - sed -n -e "/^$dd\$/,/^\$/p" portstat.stat > $tmp - info=`sed -e "s|^$dd|$dd - $cmt|" $tmp` + cmt=`cat $d/pkg/COMMENT 2> /dev/null` + sed -n -e "/^$n.$dd\$/,/^\$/p" portstat.stat > $tmp + info=`sed -e "s|^$n.$dd|$dd - $cmt|" $tmp` if [ "$info" ]; then echo " $info" >> $work else