Update for multiple ports. Also add MAINTAINER/Created [on,by] lines.

Submitted by:	maintainer
This commit is contained in:
Will Andrews 2000-05-24 05:29:54 +00:00
parent c970b381ed
commit 2247ec04c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28722

View file

@ -1,7 +1,11 @@
#!/bin/sh
#
# Created by: Alexander Langer <alex@big.endian.de>
# Created on: May 22, 2000
# MAINTAINER= alex@big.endian.de
if [ -z $1 ]; then
echo "Usage: $0 <portname>"
echo "Usage: $0 <portname> ..."
exit 1
fi
@ -12,18 +16,21 @@ if [ -z $PORTSDIR ]; then
PORTSDIR=/usr/ports
fi
while [ ! -z $1 ]; do
echo "Processing for $1..."
cd $PORTSDIR
DIR=`grep $1 INDEX| cut -f2 -d\|`
cd $DIR
make fetch
broken=`make checksum 2>&1 | grep "Checksum mismatch for" | awk '{print $5}' \
| sed -e 's:\.$::'`
broken=`make checksum 2>&1 | grep "Checksum mismatch for" | \
awk '{print $5}' | sed -e 's:\.$::'`
if [ -z $broken ]; then
make checksum
echo "Checksum ok, exiting..."
exit 1
shift
continue
fi
rm -rf $TMPDIR/checksum
@ -52,6 +59,12 @@ elif file $broken | grep "zip archive file" >/dev/null ; then
cd ../new
unzip $PORTSDIR/distfiles/$broken
cd ..
elif file $broken | grep "bzip compressed data" >/dev/null; then
cd orig
tar -yxf ../$broken
cd ../new
tar -yxf $PORTSDIR/distfiles/$broken
cd ..
else
cp $broken orig/
cp $PORTSDIR/distfiles/$broken new/
@ -59,3 +72,6 @@ fi
echo Diff follows:
diff -rNu orig new
shift
done