talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6eabcd7eee9cdc2d5424e31303831f743adcd814
parent 385e20eea99937c7c6589b1f39ef4af83fba4603
Author: Ricardo Mones <ricardo@mones.org>
Date:   Fri, 22 Mar 2013 00:41:35 +0100

Complete fix for 'make dist' generated tarballs

Ignore the EXTRA_VERSION when it's too long to be a number
and is one of:
 * an abbreviated hash (should not happen :)
 * the 'dirty' string (in a modified tree just after a release)

Diffstat:
Mconfigure.ac | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac @@ -22,7 +22,7 @@ MINOR_VERSION=`echo $GIT_VERSION | awk -F. '{print $2}'` MICRO_VERSION=`echo $GIT_VERSION | awk -F- '{print $1}' | awk -F. '{print $3}'` EXTRA_VERSION=`echo $GIT_VERSION | awk -F- '{print $2}'` -if test \( "x$EXTRA_VERSION" != "x" \); then +if test \( "x$EXTRA_VERSION" != "x" -a `echo -n $EXTRA_VERSION | wc -c` -lt 5 \); then VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}git${EXTRA_VERSION} else VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}