Commit a9be64bd authored by Vitaly Lipatov's avatar Vitaly Lipatov

add cert6 support

parent 4a6a8533
......@@ -37,6 +37,12 @@ get_type_by_git_branch_name()
return
fi
# like cert6
if echo $1 | egrep -q "^cert[0-9].?$" ; then
get_altdistr_mod $1
return
fi
# like 5.1
if echo $1 | grep -q "^[0-9].[0-9]$" ; then
get_altdistr_mod $1
......@@ -75,13 +81,13 @@ set_binaryrepo()
# M50 -> 5.0, M60P -> p6
get_altdistr_version()
{
echo "$1" | sed -e "s|M\([5-9]\)0P|p\1|g" -e "s|M\([5-9]\)0T|t\1|g" -e "s|M\([0-9]\)\([0-9]\)|\1\.\2|g" -e "s|SS|sisyphus|g" -e "s|DD|daedalus|g" -e "s|Sisyphus|sisyphus|g"
echo "$1" | sed -e "s|M\([5-9]\)0C|cert\1|g" -e "s|M\([5-9]\)0P|p\1|g" -e "s|M\([5-9]\)0T|t\1|g" -e "s|M\([0-9]\)\([0-9]\)|\1\.\2|g" -e "s|SS|sisyphus|g" -e "s|DD|daedalus|g" -e "s|Sisyphus|sisyphus|g"
}
# 5.0 -> M50, p6 -> M60P
get_altdistr_mod()
{
echo "$1" | sed -e "s|\([0-9]\)\.\([0-9]\)|M\1\2|g" -e "s|Sisyphus|SS|gi" -e "s|p\([5-9]\)|M\10P|g" -e "s|t\([6-9]\)|M\10T|g"
echo "$1" | sed -e "s|\([0-9]\)\.\([0-9]\)|M\1\2|g" -e "s|Sisyphus|SS|gi" -e "s|p\([5-9]\)|M\10P|g" -e "s|cert\([6-9]\)|M\10C|g" -e "s|t\([6-9]\)|M\10T|g"
}
# TODO: include in sisyphus_check
......
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