Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
87a2e3c5
Commit
87a2e3c5
authored
May 31, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for any p? system, do name translation more correctly
parent
bc2b91de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
alt
share/eterbuild/functions/alt
+7
-5
transf_altdistrversion.sh
tests/transf_altdistrversion.sh
+15
-1
No files found.
share/eterbuild/functions/alt
View file @
87a2e3c5
...
...
@@ -28,10 +28,12 @@ set_target_type()
return
1
;
}
# no output if not detected
get_type_by_git_branch_name
()
{
if
[
"
$1
"
=
"p5"
]
;
then
echo
"M50"
# like p5
if
echo
$1
|
grep
-q
"^p[0-9]$"
;
then
get_altdistr_mod
$1
return
fi
...
...
@@ -43,7 +45,7 @@ get_type_by_git_branch_name()
# like M50
if
echo
$1
|
grep
-q
"^M[0-9][0-9]$"
;
then
get_altdistr_mod
${
1
/^M/
}
echo
$1
return
fi
}
...
...
@@ -70,13 +72,13 @@ set_binaryrepo()
# M50 -> 5.0
get_altdistr_version
()
{
echo
"
$1
"
|
sed
-e
"s|M
50|p5
|g"
|
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"
echo
"
$1
"
|
sed
-e
"s|M
\(
[5-9]
\)
0|p
\1
|g"
|
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
get_altdistr_mod
()
{
echo
"
$1
"
|
sed
-e
"s|
\(
[0-9]
\)\.\(
[0-9]
\)
|M
\1\2
|g"
|
sed
-e
"s|Sisyphus|SS|g
"
|
sed
-e
"s|sisyphus|SS|g"
|
sed
-e
"s|p5|M5
0|g"
echo
"
$1
"
|
sed
-e
"s|
\(
[0-9]
\)\.\(
[0-9]
\)
|M
\1\2
|g"
|
sed
-e
"s|Sisyphus|SS|g
i"
|
sed
-e
"s|p
\(
[5-9]
\)
|M
\1
0|g"
}
# TODO: include in sisyphus_check
...
...
tests/transf_altdistrversion.sh
View file @
87a2e3c5
...
...
@@ -18,12 +18,17 @@ check_MOD()
check
$1
$2
`
get_altdistr_mod
$1
`
}
check_GN
()
{
check
$1
$2
`
get_type_by_git_branch_name
$1
`
}
echo
"Check get_altdistr_version"
check_AD M40 4.0
check_AD M30 3.0
check_AD M41 4.1
check_AD M50 5.0
check_AD M50 p5
check_AD M51 5.1
check_AD SS sisyphus
echo
"Check get_altdist_mod"
...
...
@@ -32,4 +37,13 @@ check_MOD 3.0 M30
check_MOD 4.0 M40
check_MOD 4.1 M41
check_MOD 5.0 M50
check_MOD 5.1 M51
check_MOD p5 M50
check_MOD p6 M60
check_MOD Sisyphus SS
check_MOD sisyphuS SS
check_GN M50 M50
check_GN 5.0 M50
check_GN p5 M50
check_GN p7 M70
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment