Skip to content

Commit 96727a6

Browse files
committed
Add check for VERSION_TAG in roll_release.sh
1 parent 0199f75 commit 96727a6

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

tools/roll_release.sh

+13-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88
VERSION_MAJOR=`grep '#define HPX_VERSION_MAJOR' hpx/config/version.hpp | awk {' print $3 '}`
99
VERSION_MINOR=`grep '#define HPX_VERSION_MINOR' hpx/config/version.hpp | awk {' print $3 '}`
1010
VERSION_SUBMINOR=`grep '#define HPX_VERSION_SUBMINOR' hpx/config/version.hpp | awk {' print $3 '}`
11+
VERSION_TAG=`grep '#define HPX_VERSION_TAG' hpx/config/version.hpp | awk {' print $3 '} | tr --delete '"'`
1112

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

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

77+
if [ ! -z "$VERSION_TAG" ]; then
78+
echo "Not printing HTML for non-final release."
79+
exit
80+
fi
81+
7182
ZIP_MD5=`md5sum packages/$ZIP | awk {'print $1'}`
7283
TARGZ_MD5=`md5sum packages/$TARGZ | awk {'print $1'}`
7384
TARBZ2_MD5=`md5sum packages/$TARBZ2 | awk {'print $1'}`

0 commit comments

Comments
 (0)