stefan pushed a commit to branch master. http://git.enlightenment.org/admin/release-management.git/commit/?id=a3255f49107334bf8e28acd606620b0f4ee317b4
commit a3255f49107334bf8e28acd606620b0f4ee317b4 Author: Stefan Schmidt <ste...@datenfreihafen.org> Date: Wed May 13 15:11:41 2015 +0200 release.sh: Add logic to tag the pre-releases accordingly. This is used for the stable updates to have different tarball names for pre and final rlease. --- release.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/release.sh b/release.sh index ad1e30f..06543a7 100755 --- a/release.sh +++ b/release.sh @@ -38,7 +38,7 @@ do_package_and_upload() echo "Changes since $OLD_VERSION:" >> NEWS echo -e "---------------------\n" >> NEWS ../release-management/generate_news.py v$OLD_VERSION..HEAD >> NEWS || exit 1 - git diff + git diff || exit 1 $EDITOR NEWS || exit 1 git diff || exit 1 git commit -v configure.ac NEWS -m "release: Update NEWS and bump version for $VERSION$PRE_RELEASE_STRING release" || exit 1 @@ -64,7 +64,22 @@ do_package_and_upload() #git co po/ sha256sum $lib-$VERSION$PRE_RELEASE_STRING.tar.gz > $lib-$VERSION$PRE_RELEASE_STRING.tar.gz.sha256 sha256sum $lib-$VERSION$PRE_RELEASE_STRING.tar.xz > $lib-$VERSION$PRE_RELEASE_STRING.tar.xz.sha256 + + if [ $MAJOR = 0 ] + then + mv $lib-$VERSION$PRE_RELEASE_STRING.tar.gz $lib-$VERSION$PRE_RELEASE_STRING-pre.tar.gz + mv $lib-$VERSION$PRE_RELEASE_STRING.tar.xz $lib-$VERSION$PRE_RELEASE_STRING-pre.tar.xz + mv $lib-$VERSION$PRE_RELEASE_STRING.tar.gz.sha256 $lib-$VERSION$PRE_RELEASE_STRING-pre.tar.gz.sha256 + mv $lib-$VERSION$PRE_RELEASE_STRING.tar.xz.sha256 $lib-$VERSION$PRE_RELEASE_STRING-pre.tar.xz.sha256 + fi + + if [ $MAJOR = 0 ] + then + scp $lib-$VERSION$PRE_RELEASE_STRING-pre.tar.* download.enlightenment.org:/srv/web/download.enlightenment.org/public_html/pre-releases/ + fi + scp $lib-$VERSION$PRE_RELEASE_STRING.tar.* download.enlightenment.org:/srv/web/download.enlightenment.org/public_html/pre-releases/ + # git push cd .. echo @@ -92,6 +107,13 @@ do_finalize_release() # fi echo "Move tarballs to final destination" + if [ $MAJOR = 0 ] + then + ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION$PRE_RELEASE_STRING-pre.tar.gz /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION$PRE_RELEASE_STRING.tar.gz + ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION$PRE_RELEASE_STRING-pre.tar.xz /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION$PRE_RELEASE_STRING.tar.xz + ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION$PRE_RELEASE_STRING-pre.tar.gz.sha256 /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION$PRE_RELEASE_STRING.tar.gz.sha256 + ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION$PRE_RELEASE_STRING-pre.tar.xz.sha256 /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION$PRE_RELEASE_STRING.tar.xz.sha256 + fi ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION$PRE_RELEASE_STRING.tar.* /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/ # if [ $MAJOR = 1 ] # then --