echo VERSION and RELEASE

This commit is contained in:
Andrew Bauer 2017-03-06 18:27:45 -06:00
parent 6dc2b13aee
commit 0cf94c3573
1 changed files with 10 additions and 0 deletions

View File

@ -118,6 +118,11 @@ if [ "${TRAVIS_EVENT_TYPE}" == "cron" ] || [ "${TRAVIS}" != "true" ]; then
export VERSION=$(git describe --long --always | sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\1/p')
export RELEASE=$(git describe --long --always | sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\2/p')
echo
echo "Packpack VERSION has been set to: ${VERSION}"
echo "Packpack RELEASE has been set to: ${RELEASE}"
echo
ln -sf distros/redhat rpm
# The rpm specfile requires the Crud submodule folder to be empty
@ -158,6 +163,11 @@ if [ "${TRAVIS_EVENT_TYPE}" == "cron" ] || [ "${TRAVIS}" != "true" ]; then
export VERSION="$zmver+$commitnum"
export RELEASE="${DIST}"
echo
echo "Packpack VERSION has been set to: ${VERSION}"
echo "Packpack RELEASE has been set to: ${RELEASE}"
echo
movecrud
if [ "${DIST}" == "trusty" ] || [ "${DIST}" == "precise" ]; then