Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
taste-setup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
taste-setup
Commits
9f1a0a86
Commit
9f1a0a86
authored
Oct 03, 2017
by
Thanassis Tsiodras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DRY principle in overwriting the AADL components.
parent
73862991
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
install/40_ocarina.sh
install/40_ocarina.sh
+12
-5
No files found.
install/40_ocarina.sh
View file @
9f1a0a86
...
...
@@ -2,14 +2,18 @@
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
.
"
${
DIR
}
/common.sh"
function
overWriteAADLcomponents
()
{
# Install Maxime's customized version of available deployment targets
echo
Installing customized version of available deployment targets...
cat
../misc/supported-platforms/ocarina_components.aadl |
\
sed
"s,/home/taste/tool-inst,
$(
taste-config
--prefix
)
,"
>
\
"
${
PREFIX
}
/share/ocarina/AADLv2/ocarina_components.aadl"
}
# Setup the tools in ~/.local/bin
cd
"
$DIR
/../ocarina"
||
exit
1
# Install Maxime's customized version of available deployment targets
cat
../misc/supported-platforms/ocarina_components.aadl |
\
sed
"s,/home/taste/tool-inst,
$(
taste-config
--prefix
)
,"
>
\
${
PREFIX
}
/share/ocarina/AADLv2/ocarina_components.aadl
# Skip Ocarina building if tree is clean and version is identical
HEAD
=
"
$(
git log
--oneline
|
head
-1
|
cut
-d
' '
-f1
)
"
VERSION_INSTALLED
=
"
$(
ocarina
-v
2>&1 |
grep
^Oca |
awk
'{print $NF}'
|
sed
's,),,;s,r,,'
)
"
...
...
@@ -21,6 +25,7 @@ else
fi
if
[
${
TREE_DIRTY
}
-eq
0
]
&&
[
"
${
HEAD
}
"
==
"
${
VERSION_INSTALLED
}
"
]
;
then
echo
Ocarina tree is clean and already installed. Skipping Ocarina build...
overWriteAADLcomponents
exit
0
fi
...
...
@@ -30,6 +35,8 @@ make distclean # ignore any errors here
make
||
exit
1
make
install
overWriteAADLcomponents
# Add Ocarina to PATH
PATH_CMD
=
'export PATH=$PATH:'
"
${
PREFIX
}
/bin"
UpdatePATH
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