Change in libosmocore[master]: osmo-release.sh: Properly rearrange var init and sanity checks

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/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Feb 24 15:44:53 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/23098 )


Change subject: osmo-release.sh: Properly rearrange var init and sanity checks
......................................................................

osmo-release.sh: Properly rearrange var init and sanity checks

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



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/98/23098/1

diff --git a/osmo-release.sh b/osmo-release.sh
index 173652d..eea17cf 100755
--- a/osmo-release.sh
+++ b/osmo-release.sh
@@ -201,21 +201,19 @@
 
 
 BUMPVER=`command -v bumpversion`
-GIT_TOPDIR="$(git rev-parse --show-toplevel)"
-NEW_VER=`bumpversion --list --current-version $VERSION $REL --allow-dirty | awk -F '=' '{ print $2 }'`
-LIBVERS=`git grep -n LIBVERSION | grep  '=' | grep am | grep -v LDFLAGS`
-MAKEMOD=`git diff --cached -GLIBVERSION --stat | grep Makefile.am`
-ISODATE=`date -I`
-
 if [ "z$BUMPVER" = "z" ]; then
 	echo Unable to find 'bumpversion' command.
 	exit 1
 fi
-
+NEW_VER=`$BUMPVER --list --current-version $VERSION $REL --allow-dirty | awk -F '=' '{ print $2 }'`
 if [ "z$NEW_VER" = "z" ]; then
 	echo "Please fix versioning to match http://semver.org/ spec (current is $VERSION) before proceeding."
 	exit 1
 fi
+GIT_TOPDIR="$(git rev-parse --show-toplevel)"
+LIBVERS=`git grep -n LIBVERSION | grep  '=' | grep am | grep -v LDFLAGS`
+MAKEMOD=`git diff --cached -GLIBVERSION --stat | grep Makefile.am`
+ISODATE=`date -I`
 
 echo "Releasing $VERSION -> $NEW_VER..."
 

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: If62024fafcd30bc3399115248116e15e141b1cbb
Gerrit-Change-Number: 23098
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210224/1c827ca2/attachment.htm>


More information about the gerrit-log mailing list