[Commits] [SCM] claws branch, master, updated. 3.9.0-161-ga839f1b
mones at claws-mail.org
mones at claws-mail.org
Fri Mar 22 19:33:03 CET 2013
The branch master of project "claws" (Claws Mail) has been updated
via a839f1b6111f9a5b9af50fee05095607853530b2 (commit)
from 6eabcd7eee9cdc2d5424e31303831f743adcd814 (commit)
- Log -----------------------------------------------------------------
commit a839f1b6111f9a5b9af50fee05095607853530b2
Author: Ricardo Mones <ricardo at mones.org>
Date: Fri Mar 22 19:30:32 2013 +0100
Even less processes
Split the GIT_VERSION with POSIX patterns, original patch by
Andrew Shadura <https://profiles.google.com/108080719405250187705>
diff --git a/configure.ac b/configure.ac
index 21a0aae..51d0a86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,10 +17,13 @@ if test \( -d .git \); then
else
GIT_VERSION=`sh -c '. ./version'`
fi
-MAJOR_VERSION=`echo $GIT_VERSION | awk -F. '{print $1}'`
-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}'`
+MAJOR_VERSION=${GIT_VERSION%%.*}
+MINOR_VERSION=${GIT_VERSION#*.}
+MINOR_VERSION=${MINOR_VERSION%%.*}
+MICRO_VERSION=${GIT_VERSION##*.}
+MICRO_VERSION=${MICRO_VERSION%%-*}
+EXTRA_VERSION=${GIT_VERSION#*-}
+EXTRA_VERSION=${EXTRA_VERSION%%-*}
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}
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list