Author: Matti Picus <[email protected]>
Branch:
Changeset: r84949:ef34203cb42b
Date: 2016-06-05 23:08 +0300
http://bitbucket.org/pypy/pypy/changeset/ef34203cb42b/
Log: blindly add rel=pypy2-v$maj.$min.$rev to release script
diff --git a/pypy/tool/release/repackage.sh b/pypy/tool/release/repackage.sh
--- a/pypy/tool/release/repackage.sh
+++ b/pypy/tool/release/repackage.sh
@@ -1,7 +1,7 @@
# Edit these appropriately before running this script
maj=5
-min=1
-rev=2
+min=3
+rev=0
branchname=release-$maj.x # ==OR== release-$maj.$min.x
tagname=release-$maj.$min.$rev # ==OR== release-$maj.$min
@@ -10,6 +10,7 @@
echo checking hg log -r $tagname
hg log -r $tagname || exit 1
+rel=pypy2-v$maj.$min.$rev
# This script will download latest builds from the buildmaster, rename the top
# level directory, and repackage ready to be uploaded to bitbucket. It will
also
# download source, assuming a tag for the release already exists, and
repackage them.
@@ -24,27 +25,27 @@
if [ $plat = linux ]; then
plat_final=linux32
fi
- mv pypy-c-jit-*-$plat pypy-$maj.$min.$rev-$plat_final
+ mv pypy-c-jit-*-$plat $rel-$plat_final
echo packaging $plat_final
- tar --owner=root --group=root --numeric-owner -cvjf
pypy-$maj.$min.$rev-$plat_final.tar.bz2 pypy-$maj.$min.$rev-$plat_final
- rm -rf pypy-$maj.$min.$rev-$plat_final
+ tar --owner=root --group=root --numeric-owner -cjf
$rel-$plat_final.tar.bz2 $rel-$plat_final
+ rm -rf $rel-$plat_final
done
plat=win32
wget http://buildbot.pypy.org/nightly/$branchname/pypy-c-jit-latest-$plat.zip
unzip pypy-c-jit-latest-$plat.zip
-mv pypy-c-jit-*-$plat pypy-$maj.$min.$rev-$plat
-zip -r pypy-$maj.$min.$rev-$plat.zip pypy-$maj.$min.$rev-$plat
-rm -rf pypy-$maj.$min.$rev-$plat
+mv pypy-c-jit-*-$plat $rel-$plat
+zip -r $rel-$plat.zip $rel-$plat
+rm -rf $rel-$plat
# Do this after creating a tag, note the untarred directory is pypy-pypy-<hash>
# so make sure there is not another one
wget https://bitbucket.org/pypy/pypy/get/$tagname.tar.bz2
tar -xf $tagname.tar.bz2
-mv pypy-pypy-* pypy-$maj.$min.$rev-src
-tar --owner=root --group=root --numeric-owner -cvjf
pypy-$maj.$min.$rev-src.tar.bz2 pypy-$maj.$min.$rev-src
-zip -r pypy-$maj.$min.$rev-src.zip pypy-$maj.$min.$rev-src
-rm -rf pypy-$maj.$min.$rev-src
+mv pypy-pypy-* $rel-src
+tar --owner=root --group=root --numeric-owner -cjf $rel-src.tar.bz2 $rel-src
+zip -r $rel-src.zip $rel-src
+rm -rf $rel-src
# Print out the md5, sha1, sha256
md5sum *.bz2 *.zip
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit