Skip to content

Commit

Permalink
Add check for VERSION_TAG in roll_release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Feb 6, 2019
1 parent 0199f75 commit 96727a6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tools/roll_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@
VERSION_MAJOR=`grep '#define HPX_VERSION_MAJOR' hpx/config/version.hpp | awk {' print $3 '}`
VERSION_MINOR=`grep '#define HPX_VERSION_MINOR' hpx/config/version.hpp | awk {' print $3 '}`
VERSION_SUBMINOR=`grep '#define HPX_VERSION_SUBMINOR' hpx/config/version.hpp | awk {' print $3 '}`
VERSION_TAG=`grep '#define HPX_VERSION_TAG' hpx/config/version.hpp | awk {' print $3 '} | tr --delete '"'`

DOT_VERSION=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SUBMINOR
UNDERSCORE_VERSION=${VERSION_MAJOR}_${VERSION_MINOR}_$VERSION_SUBMINOR
if [ ! -z "$VERSION_TAG" ]; then
echo "Warning: VERSION_TAG is not empty (\"$VERSION_TAG\")."
echo "If you intended to make a final release, remove the tag in hpx/config/version.hpp."
fi

DOT_VERSION=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SUBMINOR$VERSION_TAG
UNDERSCORE_VERSION=${VERSION_MAJOR}_${VERSION_MINOR}_$VERSION_SUBMINOR$VERSION_TAG

DOCS_WEBSITE="https://stellar-group.github.io"
SOURCE_WEBSITE="http://stellar.cct.lsu.edu"
Expand Down Expand Up @@ -68,6 +74,11 @@ rm -rf packages/7z/hpx_$DOT_VERSION
(cd packages/7z && $SEVENZIP x ../$SEVENZ > /dev/null)
echo "DONE"

if [ ! -z "$VERSION_TAG" ]; then
echo "Not printing HTML for non-final release."
exit
fi

ZIP_MD5=`md5sum packages/$ZIP | awk {'print $1'}`
TARGZ_MD5=`md5sum packages/$TARGZ | awk {'print $1'}`
TARBZ2_MD5=`md5sum packages/$TARBZ2 | awk {'print $1'}`
Expand Down

0 comments on commit 96727a6

Please sign in to comment.