[Xfce4-commits] <midori:master> makedist: Strip SHA1 from version if it's a release build
Christian Dywan
noreply at xfce.org
Fri May 17 20:38:01 CEST 2013
Updating branch refs/heads/master
to 580a4f4bf18c6bd2bfb6eb1c7f2d96cd4730f3c5 (commit)
from 19c47083c49ff7020f86719a3d1e38464b216ce5 (commit)
commit 580a4f4bf18c6bd2bfb6eb1c7f2d96cd4730f3c5
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Fri May 17 19:47:09 2013 +0200
makedist: Strip SHA1 from version if it's a release build
win32/makedist/makedist.midori | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/win32/makedist/makedist.midori b/win32/makedist/makedist.midori
index 0dd4129..27feaf3 100755
--- a/win32/makedist/makedist.midori
+++ b/win32/makedist/makedist.midori
@@ -42,6 +42,11 @@ have_7zip=`which 7za`
grep -q gtk-3.0 _build/config.log && GTK3_BUILD=1
version=`grep PACKAGE_VERSION _build/default/config.h | awk '{ print $3 $4; }' | sed 's@(debug)@-debug at g'|sed 's@"@@g'`
+#strip sha from version if release
+if [ "$RELEASE" != "" ];then
+ version=$(echo $version| awk -F \- '{print $1}')
+fi
+
if [ "$1" != "" ]; then
version_tag="$1"
fi
More information about the Xfce4-commits
mailing list