Commit 068e3845 authored by Vitaly Lipatov's avatar Vitaly Lipatov

make get_altdistr_version applicable to convert dirname Sisyphus to binary repo name sisyphus

parent e828ff5d
...@@ -54,6 +54,7 @@ get_type_by_current_branch() ...@@ -54,6 +54,7 @@ get_type_by_current_branch()
get_type_by_git_branch_name $BRANCH get_type_by_git_branch_name $BRANCH
} }
# set BYNARYREPO var by MENV in arg (M50 or 5.0)
set_binaryrepo() set_binaryrepo()
{ {
BINARYREPO="sisyphus" BINARYREPO="sisyphus"
...@@ -68,7 +69,7 @@ set_binaryrepo() ...@@ -68,7 +69,7 @@ set_binaryrepo()
# M50 -> 5.0 # M50 -> 5.0
get_altdistr_version() get_altdistr_version()
{ {
echo "$1" | sed -e "s|M\([0-9]\)\([0-9]\)|\1\.\2|g" | sed -e "s|SS|sisyphus|g" | sed -e "s|DD|daedalus|g" echo "$1" | sed -e "s|M\([0-9]\)\([0-9]\)|\1\.\2|g" | sed -e "s|SS|sisyphus|g" | sed -e "s|DD|daedalus|g" | sed -e "s|Sisyphus|sisyphus|g"
} }
# 5.0 -> M50 # 5.0 -> M50
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment