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
d237fcb1
Commit
d237fcb1
authored
Nov 08, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
full support for p? / t?, update tests for M60P M60T
parent
22615a76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
alt
share/eterbuild/functions/alt
+5
-5
transf_altdistrversion.sh
tests/transf_altdistrversion.sh
+10
-6
No files found.
share/eterbuild/functions/alt
View file @
d237fcb1
...
...
@@ -15,7 +15,7 @@ is_alt()
set_target_type
()
{
# check for M51 and so on
if
echo
$1
|
grep
"^M[0-9][0-9]$"
>
/dev/null
;
then
if
echo
$1
|
grep
"^M[0-9][0-9]
.
$"
>
/dev/null
;
then
MENV
=
$1
return
0
fi
...
...
@@ -32,7 +32,7 @@ set_target_type()
get_type_by_git_branch_name
()
{
# like p5
if
echo
$1
|
grep
-q
"^
p
[0-9]$"
;
then
if
echo
$1
|
grep
-q
"^
[pt]
[0-9]$"
;
then
get_altdistr_mod
$1
return
fi
...
...
@@ -44,7 +44,7 @@ get_type_by_git_branch_name()
fi
# like M50
if
echo
$1
|
grep
-q
"^M[0-9][0-9]$"
;
then
if
echo
$1
|
grep
-q
"^M[0-9][0-9]
.
$"
;
then
echo
$1
return
fi
...
...
@@ -70,10 +70,10 @@ set_binaryrepo()
BINARYREPO
=
"
`
get_altdistr_version
$1
`
"
}
# M50 -> 5.0
# M50 -> 5.0
, M60P -> p6
get_altdistr_version
()
{
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"
echo
"
$1
"
|
sed
-e
"s|M
\(
[5-9]
\)
0
P|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
...
...
tests/transf_altdistrversion.sh
View file @
d237fcb1
...
...
@@ -27,7 +27,8 @@ echo "Check get_altdistr_version"
check_AD M40 4.0
check_AD M30 3.0
check_AD M41 4.1
check_AD M50 p5
check_AD M50P p5
check_AD M60T t6
check_AD M51 5.1
check_AD SS sisyphus
...
...
@@ -38,12 +39,15 @@ 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 p5 M50P
check_MOD p6 M60P
check_MOD t6 M60T
check_MOD Sisyphus SS
check_MOD sisyphuS SS
check_GN M50
M50
check_GN M50
P M50P
check_GN 5.0 M50
check_GN p5 M50
check_GN p7 M70
check_GN p5 M50P
check_GN p6 M60P
check_GN t6 M60T
check_GN p7 M70P
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