=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/Attic/portstat.bld,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** www/Attic/portstat.bld 1998/05/19 02:39:20 1.2 --- www/Attic/portstat.bld 1998/10/07 21:15:46 1.3 *************** *** 1,6 **** #! /bin/sh # ! # $OpenBSD: portstat.bld,v 1.2 1998/05/19 02:39:20 marc Exp $ # # Build the OpenBSD port status web page. # Uses the following files: --- 1,6 ---- #! /bin/sh # ! # $OpenBSD: portstat.bld,v 1.3 1998/10/07 21:15:46 marc Exp $ # # Build the OpenBSD port status web page. # Uses the following files: *************** *** 12,20 **** # #set -e prog=`basename $0` - work=$prog-$$ - trap "rm -f $work; exit 1" 0 1 2 3 15 if [ ! -f portstat.hdr ]; then echo "$prog: missing file portstat.hdr" exit 1 --- 12,23 ---- # #set -e prog=`basename $0` + tmp=`mktemp /tmp/$prog-$$-XXXXXXXXXX` + work=`mktemp $prog-$$-XXXXXXXXXX` + + trap "rm -f $work $tmp; exit 1" 0 1 2 3 15 + if [ ! -f portstat.hdr ]; then echo "$prog: missing file portstat.hdr" exit 1 *************** *** 64,70 **** for d in $f/*; do dd=`basename $d` if [ -d $d -a $dd != CVS ]; then ! info=`sed -n -e "/^$dd\\$/,/^\\$/p" portstat.stat` if [ "$info" ]; then echo " $info" >> $work else --- 67,75 ---- 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` if [ "$info" ]; then echo " $info" >> $work else