From b38103f8e6973091c07537834421e45700cec3c2 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Sat, 9 Mar 2013 08:22:07 +0100 Subject: [PATCH] Minor changes on increase-version.sh --- debian/changelog | 6 ++++++ increase-version.sh | 14 +++++++------- src/fbrehm/__init__.py | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7c97c03..504fbc6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-fbrehm-libs (0.4.3-1) unstable; urgency=low + + * Version bump + + -- Developer Sat, 09 Mar 2013 08:21:13 +0100 + python-fbrehm-libs (0.4.2-1) unstable; urgency=low * Version bump diff --git a/increase-version.sh b/increase-version.sh index 4c856f9..9a8da37 100755 --- a/increase-version.sh +++ b/increase-version.sh @@ -36,7 +36,7 @@ usage() { } DO_HELP="n" -ACTION="release" +ACTION="micro" WANT_STAGE="unstable" case "${CUR_GIT_BRANCH}" in release/*) WANT_STAGE="stable";; @@ -129,9 +129,9 @@ if [ -z "${RELEASE_VERSION}" ] ; then RELEASE_VERSION='1' fi -MAIN_VERSION=$( echo "${PB_VERSION}" | awk -F. '{print $1}') -if [ -z "${MAIN_VERSION}" ]; then - MAIN_VERSION=0 +MAJOR_VERSION=$( echo "${PB_VERSION}" | awk -F. '{print $1}') +if [ -z "${MAJOR_VERSION}" ]; then + MAJOR_VERSION=0 MINOR_VERSION=0 MICRO_VERSION=0 else @@ -158,7 +158,7 @@ esac case "${ACTION}" in major) - MAIN_VERSION=$(( ${MAIN_VERSION} + 1 )) + MAJOR_VERSION=$(( ${MAJOR_VERSION} + 1 )) MINOR_VERSION=0 MICRO_VERSION=0 RELEASE_VERSION=1 @@ -177,7 +177,7 @@ case "${ACTION}" in ;; esac -NEW_PB_VERSION=${MAIN_VERSION}.${MINOR_VERSION}.${MICRO_VERSION} +NEW_PB_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION} NEW_DEBIAN_VERSION="${NEW_PB_VERSION}-${RELEASE_VERSION}" echo -e "Current version: ${GREEN}${CUR_VERSION}${NORMAL}" echo -e "New version: ${GREEN}${NEW_PB_VERSION}${NORMAL}" @@ -230,7 +230,7 @@ scripts="src/fbrehm/__init__.py" for script in $scripts; do if [ -f $script ] ; then echo -n "Performing $script ... " - sed -i -e "s/__version__\\([ ]*=[ ]*\\)[^ ]*/__version__\\1'${NEW_DEBIAN_VERSION}'/" $script + sed -i -e "s/__version__\\([ ]*=[ ]*\\)[^ ]*/__version__\\1'${NEW_PB_VERSION}'/" $script echo -e "[${GREEN}OK${NORMAL}]" fi done diff --git a/src/fbrehm/__init__.py b/src/fbrehm/__init__.py index b532884..2e5a361 100755 --- a/src/fbrehm/__init__.py +++ b/src/fbrehm/__init__.py @@ -9,7 +9,7 @@ __author__ = 'Frank Brehm ' __copyright__ = '(C) 2010-2012 by Frank Brehm, Berlin' __contact__ = 'frank@brehm-online.com' -__version__ = '0.4.2-1' +__version__ = '0.4.3' __license__ = 'LGPLv3+' # vim: fileencoding=utf-8 filetype=python ts=4 -- 2.39.5