Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
buildsupport
Commits
46b453f2
Commit
46b453f2
authored
Jan 25, 2017
by
Maxime Perrotin
Browse files
build script generate colored [INFO] lines
parent
93799d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
c/build_script.c
View file @
46b453f2
...
...
@@ -50,9 +50,17 @@ void Create_script()
"# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH
\n
"
"# unset USE_POHIC
\n\n
"
"CWD=$(pwd)
\n\n
"
"if [ -t 0 ] ; then
\n
"
" COLORON=
\"\\
e[1m
\\
e[32m
\"\n
"
" COLOROFF=
\"\\
e[0m
\"\n
"
"else
\n
"
" COLORON=
\"\"\n
"
" COLOROFF=
\"\"\n
"
"fi
\n
"
"INFO=
\"
${COLORON}[INFO]${COLOROFF}
\"\n\n
"
"if [ -f user_init_pre.sh ]
\n
"
"then
\n
"
" echo
[
INFO
]
Executing user-defined init script
\n
"
" echo
-e
\"
${
INFO
}
Executing user-defined init script
\
"\
n
"
" source user_init_pre.sh
\n
"
"fi
\n\n
"
"# Use PolyORB-HI-C runtime
\n
"
...
...
@@ -60,7 +68,7 @@ void Create_script()
"# Detect models from Ellidiss tools v2, and convert them to 1.3
\n
"
"INTERFACEVIEW=%s
\n
"
"grep
\"
version =>
\\\"
2
\"
%s >/dev/null && {
\n
"
" echo
'[
INFO
]
Converting interface view from V2 to V1.3
'
\n
"
" echo
-e
\"
${
INFO
}
Converting interface view from V2 to V1.3
\"
\n
"
" TASTE --load-interface-view %s --export-interface-view-to-1_3 __iv_1_3.aadl
\n
"
" INTERFACEVIEW=__iv_1_3.aadl
\n
"
"};
\n\n
"
,
...
...
@@ -120,7 +128,7 @@ void Create_script()
"fi
\n\n
"
"# Detect models from Ellidiss tools v2, and convert them to 1.3
\n
"
"grep
\"
version =>
\\\"
2
\"
\"
$DEPLOYMENTVIEW
\"
>/dev/null && {
\n
"
" echo
'[
INFO
]
Converting deployment view from V2 to V1.3
'
\n
"
" echo
-e
\"
${
INFO
}
Converting deployment view from V2 to V1.3
\"
\n
"
" TASTE --load-deployment-view
\"
$DEPLOYMENTVIEW
\"
--export-deployment-view-to-1_3 __dv_1_3.aadl
\n
"
" DEPLOYMENTVIEW=__dv_1_3.aadl
\n
"
"};
\n\n
"
);
...
...
@@ -190,7 +198,7 @@ void Create_script()
fprintf
(
script
,
"if [ -f user_init_post.sh ]
\n
"
"then
\n
"
" echo
[
INFO
]
Executing user-defined init script
\n
"
" echo
-e
\"
${
INFO
}
Executing user-defined init script
\
"\
n
"
" source user_init_post.sh
\n
"
"fi
\n\n
"
"cd
\"
$CWD
\"
&& assert-builder-ocarina.py
\\\n
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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