ci: add automatic mechanism for determining next version number

This commit is contained in:
Travis Cross
2012-05-08 16:35:08 +00:00
parent ee8caf78f1
commit 42dab83966
3 changed files with 22 additions and 1 deletions

View File

@@ -7,7 +7,11 @@ sdir="."
check_pwd
check_input_ver_build $@
eval $(parse_version "$1")
in_ver="$1"
if [ "$in_ver" = "auto" ]; then
in_ver="$(cat build/next-release.txt)"
fi
eval $(parse_version "$in_ver")
datestamp="$(date +%Y%m%dT%H%M%SZ)"
nightly="n${datestamp}"
build="b${2-0}"