Commit ed065a34 authored by Maxime Perrotin's avatar Maxime Perrotin

Add call to post-build script in build-script

parent 3bf93046
......@@ -289,7 +289,14 @@ void Create_script()
});
/* Let user add custom orchestrator flags */
fprintf (script, " \\\n\t$ORCHESTRATOR_OPTIONS\n");
fprintf (script, " \\\n\t$ORCHESTRATOR_OPTIONS\n\n");
fprintf (script, "if [ -f user_init_last.sh ]\n"
"then\n"
" echo -e \"${INFO} Executing user-defined post-build script\"\n"
" source user_init_last.sh\n"
"fi\n\n");
close_file(&script);
if (chmod ("build-script.sh", S_IRWXG | S_IRWXO | S_IRWXU)) {
......
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