Override version during nightly builds

pull/2981/merge
Philip O'Toole 2015-06-24 16:25:29 -07:00
parent 0c3c79c725
commit 28543d1bbb
1 changed files with 5 additions and 0 deletions

View File

@ -238,6 +238,11 @@ if [ -z "$NIGHTLY_BUILD" ]; then
update_tree
check_tag_exists $VERSION
fi
if [ -n "$NIGHTLY_BUILD" ]; then
commit=`git rev-parse HEAD`
VERSION=$VERSION-nightly-$commit
fi
do_build $VERSION
make_dir_tree $TMP_WORK_DIR $VERSION