keep a copy of the scripts, so that we don't miss them in previous revisions

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@869 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bojar 2006-10-06 18:38:21 +00:00
parent 33e7d3a8c4
commit cef863c4a7
2 changed files with 21 additions and 2 deletions

View File

@ -17,9 +17,24 @@ fi
mkdir -p $logdir
tmpdir=/tmp/validate-more-revisions-tmp
if [ -e $tmpdir ]; then
echo "$0 seems to be already running!"
echo "If this is a false alarm, remove our temp directory:"
echo " rm -rf $tmpdir"
exit 1;
fi
mkdir -p $tmpdir
# need to save a copy of the helper script validate_revision.sh,
# because previous releases might have missed it
cp ./validate_revision.sh $tmpdir/
for i in `seq $from $to`; do
echo "Validating $i...";
./validate_revision.sh $i > $logdir/$i.log 2>&1
$tmpdir/validate_revision.sh $i > $logdir/$i.log 2>&1
tail -1 $logdir/$i.log | sed 's/^/ /'
done
echo "Finished validating"
rm -rf $tmpdir
echo "Finished validating, now at revision $to"

View File

@ -23,6 +23,10 @@ function die() {
exit 1
}
if svn status | grep '^[^\?]'; then
die "Will not go to a different revision, please synchronize with a revision in repository first"
fi
svn up -r $rev || die "Failed to update to rev. $rev"
# dump the information
svn info