Skip to content

Commit 38776ad

Browse files
committed
Added a check for a recent test crawler log to the mkrelease script.
- Legacy-Id: 7601
1 parent 45ed4e6 commit 38776ad

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bin/mkrelease

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ fi
122122
VER=$1
123123

124124
REPO=$(svn info | grep "^Repository Root:" | awk '{ print $3 }')
125+
RDATE=$(svn info | grep "^Last Changed Date:" | awk '{ print $4 "T" $5 $6 }')
125126
RURL=$(svn info | grep "^URL:" | awk '{ print $2 }')
126127
RDIR=${RURL#$REPO}
128+
127129
DIR=${RDIR#/}
128130
if [ -z "$DIR" ]; then
129131
die "Couldn't find anything to release here"
@@ -161,6 +163,11 @@ VER="$(printf %d.%d.%d $MAJOR $MINOR $CHANGE)"
161163
NEXT=$(( $CHANGE + 1 ))
162164
DEV="$(printf %d.%d.%d-dev $MAJOR $MINOR $NEXT)"
163165

166+
note "Checking that there's a recent test-crawler log"
167+
touch -d $RDATE $SRC
168+
TCLOG=$(ls -t $SRC/test-crawl-*.log | head -n 1)
169+
[ $TCLOG -nt $SRC ] || die "Looked for $SRC/test-crawl-*.log, but didn't find one newer than the latest repository commit ($RDATE)"
170+
164171
note "Checking that changelog information is available"
165172
changes=$( sed -n "/^ietfdb ($VER.*)/,/^ -- /p" changelog )
166173
[ "$changes" ] || die "No changelog information for $VER found"

0 commit comments

Comments
 (0)