diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-05-07 22:55:34 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:10 -0400 |
commit | 5bf6542a2c0d351c2536984cad47233f22904a31 (patch) | |
tree | 4f355ef850b141580e16009eecc0a8893e7db787 | |
parent | c912bd61ae49cc79158f3322439c29b27ef51de8 (diff) |
set micro_version, used for tracks builds
-rw-r--r-- | tools/define_versions.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/define_versions.sh b/tools/define_versions.sh index 9acf95a650..a0642cec02 100644 --- a/tools/define_versions.sh +++ b/tools/define_versions.sh @@ -12,8 +12,26 @@ GIT_REV_REGEXP='([0-9][0-9]*)\.([0-9][0-9]*)\-?(rc[0-9]*)?-?([0-9][0-9]*)?(-g([a major_version=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\1/"` minor_version=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\2/"` + +# Tracks tags with "MAJOR.MINOR.MICRO" +# Ardour doesn't use this + +micro_version=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\3/"` + +# +# RC e.g. 8.1-rc3 (optional) +# Tracks does not use -rcN based tagging +# rc=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\3/"` + +# +# revision count since tag +# r=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\4/"` + +# +# git short sha1 commit ID +# commit=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\6/"` if [ "x$rc" != "x" ] ; then |