mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
prepare for release candidate tags:
regexp: /[0—9]+-[0-9]+(-rc[0-9]*)?/ <Major>-<Minor>[-rc[<num>]] valid tag examples: 4.0, 4.1-rc3, 5.0-rc
This commit is contained in:
parent
87f5f333ce
commit
c1ccf8e28e
3 changed files with 14 additions and 11 deletions
|
|
@ -8,14 +8,17 @@ else
|
|||
EXTENDED_RE=-r
|
||||
fi
|
||||
|
||||
GIT_REV_REGEXP='([0-9][0-9]*)\.([0-9][0-9]*)-?([0-9][0-9]*)?-?([a-z0-9]*)'
|
||||
GIT_REV_REGEXP='([0-9][0-9]*)\.([0-9][0-9]*)\-?(rc[0-9]*)?-?([0-9][0-9]*)?(-g([a-f0-9]+))?'
|
||||
|
||||
major_version=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\1/"`
|
||||
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/"`
|
||||
r=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\3/"`
|
||||
commit=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\4/"`
|
||||
rc=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\3/"`
|
||||
r=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\4/"`
|
||||
commit=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\6/"`
|
||||
|
||||
if [ "x$r" != "x" ] ; then
|
||||
if [ "x$rc" != "x" ] ; then
|
||||
revcount=$rc${r:+.$r}
|
||||
elif [ "x$r" != "x" ] ; then
|
||||
revcount=$r
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue