Skip to content
Snippets Groups Projects
Commit 375ceaaa authored by Pavel Balaev's avatar Pavel Balaev Committed by Kirill Yukhin
Browse files

tools: fix gdb.sh revision regex

Regular expression now works on versions: alpha, beta, rc and so on.

NO_DOC=bugfix
NO_TEST=bugfix
NO_CHANGELOG=bugfix
parent 83e8c50f
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,8 @@ SOURCES=${PWD}/sources
# the wrapper more complex by additional checks, so this activity
# is left for the user.
if [ ! -d "${SOURCES}" ]; then
REVISION=$(grep -oP 'Tarantool \d+\.\d+\.\d+-\d+-g\K[a-f0-9]+' "$VERSION")
REGEX='Tarantool \d+\.\d+\.\d+(-(alpha|beta|rc)[0-9]+|(-entrypoint))?-\d+-g\K[a-f0-9]+'
REVISION=$(grep -oP "$REGEX" "$VERSION")
cat <<SOURCES
================================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment