[gnome-shell-extensions] build: strip micro version if minor is even
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] build: strip micro version if minor is even
- Date: Thu, 29 Mar 2012 18:00:02 +0000 (UTC)
commit 9fb703ca6b032e6249646886a882bbc171a673a5
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Mar 29 19:51:13 2012 +0200
build: strip micro version if minor is even
To avoid manually adding the 3.4 stable version when doing the
release, check in configure if building a stable (even minor) version
and strip micro at that time.
configure.ac | 8 ++++++++
extension.mk | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2a90083..d23fa80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,14 @@ PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS
+SHELL_VERSION="$PACKAGE_VERSION"
+shell_major=`echo "$PACKAGE_VERSION" | cut -d'.' -f1`
+shell_minor=`echo "$PACKAGE_VERSION" | cut -d'.' -f2`
+if test "$(($shell_minor % 2))" -eq 0; then
+ SHELL_VERSION="$shell_major.$shell_minor"
+fi
+AC_SUBST([SHELL_VERSION])
+
dnl keep this in alphabetic order
dnl by default, install only extensions that do not change completely the shell experience,
dnl that don't require GSettings and that don't require external packages for typelibs
diff --git a/extension.mk b/extension.mk
index 05c072c..1a84f60 100644
--- a/extension.mk
+++ b/extension.mk
@@ -11,7 +11,7 @@ metadata.json: metadata.json.in $(top_builddir)/config.status
-e "s|[ ]uuid@|$(uuid)|" \
-e "s|[ ]gschemaname@|$(gschemaname)|" \
-e "s|[ ]gettext_domain@|$(GETTEXT_PACKAGE)|" \
- -e "s|[ ]shell_current@|$(PACKAGE_VERSION)|" \
+ -e "s|[ ]shell_current@|$(SHELL_VERSION)|" \
-e "s|[ ]url@|$(extensionurl)|" \
$< > $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]