mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
improved, functioning regexp for revisions
This commit is contained in:
parent
db7d401435
commit
8faf313ed2
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ else
|
|||
EXTENDED_RE=-r
|
||||
fi
|
||||
|
||||
GIT_REV_REGEXP='([0-9][0-9]*)\.([0-9][0-9]*)\-?([prec][0-9]*)?-?([0-9][0-9]*)?(-g([a-f0-9]+))?'
|
||||
GIT_REV_REGEXP='([0-9][0-9]*)\.([0-9][0-9]*)\-?([pr][rc]e?[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/"`
|
||||
minor_version=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed $EXTENDED_RE -e 1d -e "s/$GIT_REV_REGEXP/\2/"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue