From 8753064190d424242ef5f814f53823631f1906c6 Mon Sep 17 00:00:00 2001 From: Tim Mattox Date: Sat, 26 Jul 2008 13:31:06 +0000 Subject: [PATCH] Have create failure e-mails say what base version failed. This commit was SVN r19050. --- contrib/nightly/create_tarball.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/nightly/create_tarball.sh b/contrib/nightly/create_tarball.sh index 3601f855e4..b593cb6981 100755 --- a/contrib/nightly/create_tarball.sh +++ b/contrib/nightly/create_tarball.sh @@ -23,6 +23,7 @@ # $2: e-mail address for destination # $3: SVN root # $4: dest dir +# $5: version string for error e-mails, eg. trunk, v1.2, etc. (optional) # scratch_root="$1" @@ -56,6 +57,15 @@ if test -z "$scratch_root" -o -z "$email" -o -z "$svnroot" \ exit 1 fi +# Get a version string to use if there is an error. +# It will get replaced upon succesful "make distcheck" with the real version. +# Extract (from the SVN root) a version string if one wasn't supplied. +if test -n "$5"; then + version="$5" +else + version=`basename $svnroot` +fi + # send a mail # should only be called after logdir is set send_error_mail() {