Mieux interpréter la numérotation utilisée pour les projets envole
This commit is contained in:
parent
b49c8c8b02
commit
fdebf244d5
|
@ -63,10 +63,10 @@ function parse_tag {
|
||||||
extended_version="${tag##*/}"
|
extended_version="${tag##*/}"
|
||||||
if [ "$flavor" = "pkg" ]
|
if [ "$flavor" = "pkg" ]
|
||||||
then
|
then
|
||||||
exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.]\+\)-\([0-9]\+\)\(-[a-z]\++[0-9]\+\)\?\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 revision:\2 modification:\3 distance:\5 anchor:\6/")"
|
exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.+]\+\)-\([0-9]\+\)\(-[a-z]\++[0-9]\+\)\?\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 revision:\2 modification:\3 distance:\5 anchor:\6/")"
|
||||||
elif [ "$flavor" = "release" ]
|
elif [ "$flavor" = "release" ]
|
||||||
then
|
then
|
||||||
exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.]\+\)\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 distance:\3 anchor:\4/")"
|
exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.+]\+\)\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 distance:\3 anchor:\4/")"
|
||||||
fi
|
fi
|
||||||
echo $exploded_version
|
echo $exploded_version
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue