Commit 46b453f2 authored by Maxime Perrotin's avatar Maxime Perrotin

build script generate colored [INFO] lines

parent 93799d28
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment