From 38776ad494032f968bbf4184bfb9582b275c6d84 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 12 Apr 2014 18:49:03 +0000 Subject: [PATCH] Added a check for a recent test crawler log to the mkrelease script. - Legacy-Id: 7601 --- bin/mkrelease | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/mkrelease b/bin/mkrelease index 5ee93ddf4..dd312e705 100755 --- a/bin/mkrelease +++ b/bin/mkrelease @@ -122,8 +122,10 @@ fi VER=$1 REPO=$(svn info | grep "^Repository Root:" | awk '{ print $3 }') +RDATE=$(svn info | grep "^Last Changed Date:" | awk '{ print $4 "T" $5 $6 }') RURL=$(svn info | grep "^URL:" | awk '{ print $2 }') RDIR=${RURL#$REPO} + DIR=${RDIR#/} if [ -z "$DIR" ]; then die "Couldn't find anything to release here" @@ -161,6 +163,11 @@ VER="$(printf %d.%d.%d $MAJOR $MINOR $CHANGE)" NEXT=$(( $CHANGE + 1 )) DEV="$(printf %d.%d.%d-dev $MAJOR $MINOR $NEXT)" +note "Checking that there's a recent test-crawler log" +touch -d $RDATE $SRC +TCLOG=$(ls -t $SRC/test-crawl-*.log | head -n 1) +[ $TCLOG -nt $SRC ] || die "Looked for $SRC/test-crawl-*.log, but didn't find one newer than the latest repository commit ($RDATE)" + note "Checking that changelog information is available" changes=$( sed -n "/^ietfdb ($VER.*)/,/^ -- /p" changelog ) [ "$changes" ] || die "No changelog information for $VER found"