summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-31 00:12:03 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-31 00:12:03 -0800
commit74dcfe143392a2444aee1b2b4f8b0bb6ce36e91c (patch)
tree93d1eddc0e884cb14156c30b13b73a2162fc8741
parent9c3052b55117e1380a2fd0646770d158437c9f55 (diff)
downloadportage-74dcfe143392a2444aee1b2b4f8b0bb6ce36e91c.tar.gz
portage-74dcfe143392a2444aee1b2b4f8b0bb6ce36e91c.tar.bz2
portage-74dcfe143392a2444aee1b2b4f8b0bb6ce36e91c.zip
mkrelease.sh: set portage.VERSION
-rwxr-xr-xmkrelease.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkrelease.sh b/mkrelease.sh
index e8fb98dc8..bfd1d4bd2 100755
--- a/mkrelease.sh
+++ b/mkrelease.sh
@@ -71,6 +71,11 @@ cp "${SOURCE_DIR}/"{DEVELOPING,LICENSE,NEWS,RELEASE-NOTES,TEST-NOTES} \
rm -rf "$SOURCE_DIR" || die "directory cleanup failed"
+echo ">>> Setting portage.VERSION"
+sed -e "s/^VERSION=.*/VERSION=\"${VERSION}\"/" \
+ -i "${RELEASE_DIR}/pym/portage/__init__.py" || \
+ die "Failed to patch portage.VERSION"
+
echo ">>> Creating Changelog"
git_log_opts=""
if [ -n "$CHANGELOG_REVISION" ] ; then