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
930b5bfd
Commit
930b5bfd
authored
Mar 09, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ALT 4.0/4.1 detection
parent
97830493
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
4 deletions
+30
-4
alt
share/eterbuild/functions/alt
+3
-3
test_gear.sh
tests/test_gear.sh
+1
-1
test_set_target_type.sh
tests/test_set_target_type.sh
+26
-0
No files found.
share/eterbuild/functions/alt
View file @
930b5bfd
...
...
@@ -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
|
egrep
-q
"^M[0-9][0-9].?$"
;
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
"^[pt][0-9]
$"
;
then
if
echo
$1
|
egrep
-q
"^[pt][0-9].?
$"
;
then
get_altdistr_mod
$1
return
fi
...
...
@@ -44,7 +44,7 @@ get_type_by_git_branch_name()
fi
# like M50P or M41
if
echo
$1
|
grep
-q
"^M[0-9][0-9].
$"
;
then
if
echo
$1
|
egrep
-q
"^M[0-9][0-9].?
$"
;
then
echo
$1
return
fi
...
...
tests/test_gear.sh
View file @
930b5bfd
...
...
@@ -13,7 +13,7 @@ echo "Current git branch: $(get_current_branch)"
check 1 M40
$(
get_type_by_git_branch_name 4.0
)
check 1 M40
$(
get_type_by_git_branch_name M40
)
check 1 M50
$(
get_type_by_git_branch_name p5
)
check 1 M50
P
$(
get_type_by_git_branch_name p5
)
check 1 M50
$(
get_type_by_git_branch_name M50
)
check 1 M50
$(
get_type_by_git_branch_name 5.0
)
check 1 M51
$(
get_type_by_git_branch_name M51
)
...
...
tests/test_set_target_type.sh
0 → 100755
View file @
930b5bfd
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec
check
()
{
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$3
' do not match with '
$2
'"
||
echo
"OK for '
$1
' with '
$3
'"
}
check_AD
()
{
MENV
=
'undetected'
set_target_type
$1
check
$1
$2
$MENV
}
check_AD M40 M40
check_AD M30 M30
check_AD M41 M41
check_AD M50P M50P
check_AD M60T M60T
check_AD M51 M51
check_AD E51 SS
check_AD SS SS
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