Commit 0efd493d authored by Vitaly Lipatov's avatar Vitaly Lipatov

drop 4.0 style version support in branch names and distro version

parent 0c8bafc3
#!/bin/bash #!/bin/bash
# 2003-2008, 2012 Etersoft www.etersoft.ru # 2003-2008, 2012, 2015 (c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru> # Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain # Public domain
...@@ -43,12 +43,6 @@ get_type_by_git_branch_name() ...@@ -43,12 +43,6 @@ get_type_by_git_branch_name()
return return
fi fi
# like 5.1
if echo $1 | grep -q "^[0-9].[0-9]$" ; then
get_altdistr_mod $1
return
fi
# like M50P or M41 # like M50P or M41
if echo $1 | egrep -q "^M[0-9][0-9].?$" ; then if echo $1 | egrep -q "^M[0-9][0-9].?$" ; then
echo $1 echo $1
...@@ -62,7 +56,7 @@ get_type_by_current_branch() ...@@ -62,7 +56,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 BYNARYREPO var by MENV in arg (M70)
set_binaryrepo() set_binaryrepo()
{ {
BINARYREPO="sisyphus" BINARYREPO="sisyphus"
...@@ -82,16 +76,16 @@ set_binaryrepo() ...@@ -82,16 +76,16 @@ set_binaryrepo()
return 0 return 0
} }
# M50 -> 5.0, M60P -> p6 # M60P -> p6
get_altdistr_version() get_altdistr_version()
{ {
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" 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|SS|sisyphus|g" -e "s|DD|daedalus|g" -e "s|Sisyphus|sisyphus|g"
} }
# 5.0 -> M50, p6 -> M60P # p6 -> M60P
get_altdistr_mod() 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|cert\([6-9]\)|M\10C|g" -e "s|t\([6-9]\)|M\10T|g" echo "$1" | sed -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 # TODO: include in sisyphus_check
......
# ALT Linux Sisyphus -> ALT Linux 2.4
Development/Documentation|Development/C
xorg-proto-devel|xorg-x11-proto-devel
xorg-inputproto-devel|xorg-x11-proto-devel
xorg-xextproto-devel|xorg-x11-proto-devel
xorg-cf-files|xorg-cf-files
libslang2-devel|libslang-devel
libesd-devel|esound-devel
sysvinit-utils|
xorg-sdk|xorg-x11-devel
libgif-devel|libungif-devel
libgif|libungif
libpam-devel|libpam0-devel
ImageMagick-tools|ImageMagick
kernel-build-tools|kernel-build-tools kernel-headers-modules-std-smp kernel-headers-modules-ovz-smp kernel-headers-modules-wks-smp
rpm-build-intro|rpm-build-compat
libv4l-devel|
libmpg123-devel|
libjack-devel|jackit-devel
libwxGTK-devel|wxGTK-devel
libwxGTK|wxGTK
libudev-devel|
libudev1|
libfreeglut|freeglut
libfreeglut-devel|freeglut-devel
libesd-devel|esound-devel
libgif-devel|libungif-devel
libgif|libungif
ImageMagick-tools|ImageMagick
kernel-build-tools|kernel-build-tools kernel-headers-modules-std-smp kernel-headers-modules-ovz-smp
kernel-build-tools|kernel-build-tools kernel-headers-modules-ovz-rhel kernel-headers-modules-ovz-smp kernel-headers-modules-std-def
libv4l-devel|libv4l-devel
libmpg123-devel|libmpg123-devel
libudev-devel|libudev-devel
i586-glibc-core|
i586-glibc-pthread|
rpm-build-intro|rpm-build-compat
kernel-build-tools|kernel-build-tools kernel-headers-modules-std-def
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