aboutsummaryrefslogtreecommitdiff
path: root/pypy/tool
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-10-03 20:33:35 +0300
committerMatti Picus <matti.picus@gmail.com>2020-10-03 20:33:35 +0300
commit74cfe9885c8f083bf8d8cb7e4ee0ec98e81635b9 (patch)
tree324271d216483eaba6b18e53f6878486bfc9ead6 /pypy/tool
parentrestart whatsnew-pypy3-head.rst (diff)
downloadpypy-74cfe9885c8f083bf8d8cb7e4ee0ec98e81635b9.tar.gz
pypy-74cfe9885c8f083bf8d8cb7e4ee0ec98e81635b9.tar.bz2
pypy-74cfe9885c8f083bf8d8cb7e4ee0ec98e81635b9.zip
simplify source repackaging via hg archive, creates .hg_archival.txt, issue 3315
Diffstat (limited to 'pypy/tool')
-rwxr-xr-xpypy/tool/release/repackage.sh28
1 files changed, 3 insertions, 25 deletions
diff --git a/pypy/tool/release/repackage.sh b/pypy/tool/release/repackage.sh
index 0b7e9b7cc9..b6b4f801c2 100755
--- a/pypy/tool/release/repackage.sh
+++ b/pypy/tool/release/repackage.sh
@@ -106,32 +106,10 @@ function repackage_builds {
fi
}
-function create_archival {
- if [ -e $1 ]; then
- return 0;
- fi
- echo repo: 45eff22199974f85fd96138d25510f4660aba5a1 > $1
- hg log -r $tagname -T 'node: {node}\n' >> $1
- echo branch: $branchname >> $1
- echo tag: $tagname >> $1
-}
-
function repackage_source {
- # Download source and repackage
- # Requires a valid $tagname, note the untarred directory is pypy-pypy-<hash>
- # so make sure there is not another one
- if wget https://foss.heptapod.net/pypy/pypy/repository/$tagname/archive.tar.gz
- then
- tar -xf archive.tar.gz
- rm archive.tar.gz
- mv pypy-release-* $rel-src
- create_archival $rel-src/.hg_archival.txt
- tar --owner=root --group=root --numeric-owner -cjf $rel-src.tar.bz2 $rel-src
- zip -rq $rel-src.zip $rel-src
- rm -rf $rel-src
- else
- echo source tarfile for $tagname not found on bitbucket, did you push the tag commit?
- fi
+ # Requires a valid $tagname
+ hg archive -r $tagname $rel-src.tar.bz2
+ hg archive -r $tagname $rel-src.zip
}
function print_sha256 {