Due to cvs(1)'s bug/feature checkout using date of commit generates
content of the previous revision. So, to get correct numbers we need to refer revision number directly
This commit is contained in:
parent
3970cfb275
commit
c9f5b9bcf1
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=13158
1 changed files with 13 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
|||
# it with our current list. This lets us keep info about revisions that
|
||||
# have been axed from the repository during ports/INDEX cleanup.
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $FreeBSD: www/tools/portsgrowth/getinfo.sh,v 1.2 2002/05/20 11:33:17 phantom Exp $
|
||||
|
||||
CVSCMD='cvs -QR'
|
||||
INDEX=ports/INDEX
|
||||
|
@ -16,13 +16,21 @@ cp ports.log ports.log1
|
|||
|
||||
$CVSCMD co $INDEX
|
||||
|
||||
$CVSCMD log $INDEX |
|
||||
sed -ne "s/^date: \([^;]*\);.*$/\1/p" |
|
||||
while read date ; do
|
||||
$CVSCMD log $INDEX |
|
||||
awk '$1 ~ /^revision/ {
|
||||
print $2
|
||||
next
|
||||
}
|
||||
$1 ~ /^date/ {
|
||||
print $2 " " substr($3, 1, length($3)-1)
|
||||
next
|
||||
}' |
|
||||
while read rev ; do
|
||||
read date
|
||||
grep "$date" ports.log > /dev/null 2>&1
|
||||
if [ $? = 1 ]; then
|
||||
echo $date
|
||||
$CVSCMD up -D "$date" $INDEX
|
||||
$CVSCMD up -r "$rev" $INDEX
|
||||
echo $date $(wc -l < $INDEX) >> ports.log1
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue