From dd87c94a6fa4366563656c4b17e9ee3ad8761440 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sat, 31 Jul 2010 11:24:58 +0200 Subject: [PATCH] update .release.sh to check the version in setup_mucli.py --- .release.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.release.sh b/.release.sh index 2f29a39..9aecdda 100755 --- a/.release.sh +++ b/.release.sh @@ -31,7 +31,19 @@ if hg tags | grep "${VERSIONSTR}" > /dev/null; then sleep 3 MODFILE="${PYWEB}/mumble/__init__.py" vi "$MODFILE" -c '/version =' - hg commit "$MODFILE" -m 'Bump version' + hg commit "$MODFILE" -m 'Bump mumble module version' +fi + +VERSIONSTR=`python -c 'import mumble; print mumble.version_str'` + +SETUPVER=`grep 'version=' setup_mucli.py | cut '-d"' -f2` +if [ "v${SETUPVER}" != "${VERSIONSTR}" ]; then + echo "Warning: Version string in setup_mucli.py has not been updated." + echo " Running vi so you can fix it in three, two, one." + sleep 3 + MODFILE="${PYWEB}/setup_mucli.py" + vi "$MODFILE" -c '/version=' + hg commit "$MODFILE" -m 'Bump version in setup_mucli.py' fi HISTFILE=`tempfile` @@ -39,8 +51,6 @@ hg log -r "${LASTTAG}:tip" > "${HISTFILE}" vi -p "${HISTFILE}" "${BASEDIR}/CHANGELOG" rm "${HISTFILE}" -VERSIONSTR=`python -c 'import mumble; print mumble.version_str'` - echo "New version will be tagged ${VERSIONSTR}. If this is correct, hit enter to continue." read