mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Update for multiple ports. Also add MAINTAINER/Created [on,by] lines.
Submitted by: maintainer
This commit is contained in:
parent
c970b381ed
commit
2247ec04c2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28722
1 changed files with 57 additions and 41 deletions
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Created by: Alexander Langer <alex@big.endian.de>
|
||||||
|
# Created on: May 22, 2000
|
||||||
|
# MAINTAINER= alex@big.endian.de
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo "Usage: $0 <portname>"
|
echo "Usage: $0 <portname> ..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -12,50 +16,62 @@ if [ -z $PORTSDIR ]; then
|
||||||
PORTSDIR=/usr/ports
|
PORTSDIR=/usr/ports
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $PORTSDIR
|
while [ ! -z $1 ]; do
|
||||||
DIR=`grep $1 INDEX| cut -f2 -d\|`
|
echo "Processing for $1..."
|
||||||
cd $DIR
|
|
||||||
|
|
||||||
make fetch
|
cd $PORTSDIR
|
||||||
broken=`make checksum 2>&1 | grep "Checksum mismatch for" | awk '{print $5}' \
|
DIR=`grep $1 INDEX| cut -f2 -d\|`
|
||||||
| sed -e 's:\.$::'`
|
cd $DIR
|
||||||
|
|
||||||
if [ -z $broken ]; then
|
make fetch
|
||||||
|
broken=`make checksum 2>&1 | grep "Checksum mismatch for" | \
|
||||||
|
awk '{print $5}' | sed -e 's:\.$::'`
|
||||||
|
|
||||||
|
if [ -z $broken ]; then
|
||||||
make checksum
|
make checksum
|
||||||
echo "Checksum ok, exiting..."
|
shift
|
||||||
exit 1
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf $TMPDIR/checksum
|
rm -rf $TMPDIR/checksum
|
||||||
mkdir $TMPDIR/checksum
|
mkdir $TMPDIR/checksum
|
||||||
cd $TMPDIR/checksum
|
cd $TMPDIR/checksum
|
||||||
mkdir $TMPDIR/checksum/orig
|
mkdir $TMPDIR/checksum/orig
|
||||||
mkdir $TMPDIR/checksum/new
|
mkdir $TMPDIR/checksum/new
|
||||||
|
|
||||||
echo Fetching $broken
|
echo Fetching $broken
|
||||||
fetch ftp://ftp.FreeBSD.ORG/pub/FreeBSD/distfiles/$broken
|
fetch ftp://ftp.FreeBSD.ORG/pub/FreeBSD/distfiles/$broken
|
||||||
|
|
||||||
if [ ! -r $broken ]; then
|
if [ ! -r $broken ]; then
|
||||||
echo "File $broken not found, fetch error?"
|
echo "File $broken not found, fetch error?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if file $broken | grep "gzip compressed data" >/dev/null; then
|
if file $broken | grep "gzip compressed data" >/dev/null; then
|
||||||
cd orig
|
cd orig
|
||||||
tar -zxf ../$broken
|
tar -zxf ../$broken
|
||||||
cd ../new
|
cd ../new
|
||||||
tar -zxf $PORTSDIR/distfiles/$broken
|
tar -zxf $PORTSDIR/distfiles/$broken
|
||||||
cd ..
|
cd ..
|
||||||
elif file $broken | grep "zip archive file" >/dev/null ; then
|
elif file $broken | grep "zip archive file" >/dev/null; then
|
||||||
cd orig
|
cd orig
|
||||||
unzip ../$broken
|
unzip ../$broken
|
||||||
cd ../new
|
cd ../new
|
||||||
unzip $PORTSDIR/distfiles/$broken
|
unzip $PORTSDIR/distfiles/$broken
|
||||||
cd ..
|
cd ..
|
||||||
else
|
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 $broken orig/
|
||||||
cp $PORTSDIR/distfiles/$broken new/
|
cp $PORTSDIR/distfiles/$broken new/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Diff follows:
|
echo Diff follows:
|
||||||
diff -rNu orig new
|
diff -rNu orig new
|
||||||
|
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue