dependency compilation
This commit is contained in:
23
cbuild.sh
23
cbuild.sh
@@ -96,9 +96,8 @@ function call_task {
|
||||
local default_config_path="$2"
|
||||
local task="$3"
|
||||
|
||||
print_header "${CYAN}" "─" "$task"
|
||||
load_config "$current_config_path" "$default_config_path" "$task"
|
||||
resolve_dependencies "$DEPS_BASEDIR" "$DEPS"
|
||||
print_header "${CYAN}" "─" "$PROJECT/$task"
|
||||
load_config "$current_config_path" "$default_config_path" "$task" true
|
||||
|
||||
if [ ! -z "$PRE_TASK_SCRIPT" ]; then
|
||||
myprint "${BLUE}executing ${WHITE}$TASK_SCRIPT"
|
||||
@@ -116,27 +115,15 @@ function call_task {
|
||||
|
||||
function call_tasks {
|
||||
local tasks="$@"
|
||||
load_config "$current_config_path" "$default_config_path"
|
||||
load_config "$current_config_path" "$default_config_path" "" false
|
||||
print_header "${WHITE}" "═" "$PROJECT"
|
||||
for task in $tasks ; do
|
||||
call_task "$current_config_path" "$default_config_path" "$task"
|
||||
done
|
||||
print_hline "${WHITE}" "═"
|
||||
}
|
||||
|
||||
print_hline "${WHITE}" "═"
|
||||
selected_tasks_count=${#selected_tasks_array[@]}
|
||||
if [ $selected_tasks_count -gt 0 ]; then
|
||||
time call_tasks "${selected_tasks_array[@]}" #2>&1 | tee cbuild.log
|
||||
call_tasks "${selected_tasks_array[@]}"
|
||||
fi
|
||||
|
||||
if [ -f cbuild.log ]; then
|
||||
# remove terminal escape codes
|
||||
sed -e 's/[^[:blank:][:print:]]//g' \
|
||||
-e 's/\[0;[0-9][0-9]m//g' \
|
||||
-e 's/\[0;[0-9]m//g' \
|
||||
-e 's/\[[0-9][0-9]m//g' \
|
||||
-e 's/\[[0-9]m//g' \
|
||||
-e 's/ H //g' \
|
||||
-e 's/\[3gH //g' \
|
||||
-i cbuild.log
|
||||
fi
|
||||
Reference in New Issue
Block a user