]> Frank Brehm's Git Trees - my-stuff/fbrehm.git/commitdiff
Minor changes on increase-version.sh develop 0.4.3-1
authorFrank Brehm <frank@brehm-online.com>
Sat, 9 Mar 2013 07:22:07 +0000 (08:22 +0100)
committerFrank Brehm <frank@brehm-online.com>
Sat, 9 Mar 2013 07:22:07 +0000 (08:22 +0100)
debian/changelog
increase-version.sh
src/fbrehm/__init__.py

index 7c97c032bb338fb298a7aa6080e74102b7d81768..504fbc6c35ff7832402e1779b44b2582fcc482c9 100644 (file)
@@ -1,3 +1,9 @@
+python-fbrehm-libs (0.4.3-1) unstable; urgency=low
+
+  * Version bump
+
+ -- Developer <frank@brehm-online.com>  Sat, 09 Mar 2013 08:21:13 +0100
+
 python-fbrehm-libs (0.4.2-1) unstable; urgency=low
 
   * Version bump
index 4c856f9b897ae71f58fe30d0e9d40fab47b0ef0b..9a8da370cf9e3d71364b8e76ecc02f4a9412fa7e 100755 (executable)
@@ -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
index b53288406f5e78f22a2193a8b15881f24c3d0001..2e5a361b0e92e48551e10724943346316a31184b 100755 (executable)
@@ -9,7 +9,7 @@
 __author__ = 'Frank Brehm <frank@brehm-online.com>'
 __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