Browse Source

update .release.sh to check the version in setup_mucli.py

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
dd87c94a6f
  1. 16
      .release.sh

16
.release.sh

@ -31,7 +31,19 @@ if hg tags | grep "${VERSIONSTR}" > /dev/null; then
sleep 3 sleep 3
MODFILE="${PYWEB}/mumble/__init__.py" MODFILE="${PYWEB}/mumble/__init__.py"
vi "$MODFILE" -c '/version =' 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 fi
HISTFILE=`tempfile` HISTFILE=`tempfile`
@ -39,8 +51,6 @@ hg log -r "${LASTTAG}:tip" > "${HISTFILE}"
vi -p "${HISTFILE}" "${BASEDIR}/CHANGELOG" vi -p "${HISTFILE}" "${BASEDIR}/CHANGELOG"
rm "${HISTFILE}" 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." echo "New version will be tagged ${VERSIONSTR}. If this is correct, hit enter to continue."
read read

Loading…
Cancel
Save