Change in libosmocore[master]: osmo-release.sh: Allow forcing release without LIBVERSION bump

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Thu Aug 30 12:09:35 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/10704


Change subject: osmo-release.sh: Allow forcing release without LIBVERSION bump
......................................................................

osmo-release.sh: Allow forcing release without LIBVERSION bump

Sometimes a fix release may be required which only contains fixes to
parts not related to a shared library, for instance a fix in the build
system. Thus allow releasing without bumping LIBVERSION, but only
through env var setting for people who know what they are doing.

Change-Id: I91e186d47638038bc2968ea0178879365ffc9512
---
M osmo-release.sh
1 file changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/04/10704/1

diff --git a/osmo-release.sh b/osmo-release.sh
index 1e5a203..26ebd33 100755
--- a/osmo-release.sh
+++ b/osmo-release.sh
@@ -7,6 +7,8 @@
 	REL="patch"
 fi
 
+ALLOW_NO_LIBVERSION_CHANGE="${ALLOW_NO_LIBVERSION_CHANGE:-0}"
+
 BUMPVER=`command -v bumpversion`
 
 NEW_VER=`bumpversion --list --current-version $VERSION $REL --allow-dirty | awk -F '=' '{ print $2 }'`
@@ -27,12 +29,13 @@
 echo "Releasing $VERSION -> $NEW_VER..."
 
 if [ "z$LIBVERS" != "z" ]; then
-	if [ "z$MAKEMOD" = "z" ]; then
-		echo "Before releasing, please modify some of the libversions: $LIBVERS"
+	if [ "z$MAKEMOD" = "z" ] && [ "z$ALLOW_NO_LIBVERSION_CHANGE" = "z0" ]; then
+		echo "ERROR: Before releasing, please modify some of the libversions: $LIBVERS"
 		echo "You should NOT be doing this unless you've read and understood following article:"
 		echo "https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info"
 		exit 1
 	fi
+
 	if [ -f "TODO-RELEASE" ]; then
 		grep '#' TODO-RELEASE > TODO-RELEASE.clean
 		mv TODO-RELEASE.clean TODO-RELEASE

-- 
To view, visit https://gerrit.osmocom.org/10704
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I91e186d47638038bc2968ea0178879365ffc9512
Gerrit-Change-Number: 10704
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180830/57530e8e/attachment.htm>


More information about the gerrit-log mailing list