minor log style change

This commit is contained in:
2025-11-09 23:26:43 +05:00
parent 6bfc0f5e9a
commit baf45a4b10
3 changed files with 24 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ include "@cbuild/include/myprint.sh"
function exec_script_line {
local script="$1"
local line_num="$2"
#bool
#true or false
local quiet=$3
myprint_quiet $quiet "${BLUE}reading line $line_num from $script"
@@ -31,14 +31,14 @@ function replace_var_value_in_script(){
function clean_dir {
local dir="$1"
myprint "${WHITE}cleaning $dir"
myprint "${BLUE}cleaning ${WHITE}'$dir'"
rm -rf "$dir"
mkdir "$dir"
}
function delete_dir {
local dir="$1"
myprint "${WHITE}deleting $dir"
myprint "${BLUE}deleting ${WHITE}'$dir'"
rm -rf "$dir"
}
@@ -46,7 +46,7 @@ function try_delete_dir_or_file {
local path="$1"
if [ -f "$path" ] || [ -d "$path" ]; then
rm -rf "$path"
myprint "${WHITE}deleting $path"
myprint "${BLUE}deleting ${WHITE}'$path'"
fi
}
@@ -54,7 +54,7 @@ file_copy_default_if_not_present(){
local file="$1"
local file_default="$2"
if [ ! -f "$file" ]; then
myprint "${YELLOW}creating default ${WHITE}$file"
myprint "${YELLOW}creating default ${WHITE}'$file'"
cp -r "$file_default" "$file"
fi
}
@@ -68,18 +68,18 @@ function exec_command {
}
function load_dependency_config {
local dependency_config_file="$1"
myprint "${BLUE}loading dependency config ${WHITE}${dependency_config_file}${BLUE}"
include "$dependency_config_file"
local dep_conf_file="$1"
myprint "${BLUE}loading dependency config ${WHITE}'${dep_conf_file}'"
include "$dep_conf_file"
}
# builds a dependency when $dep_out_files dont exist or rebuild task is executed
function build_dependency {
# path to *.config file
local dependency_config_file="$1"
local dep_conf_file="$1"
# true or false
local force_build="$2"
load_dependency_config "$dependency_config_file"
load_dependency_config "$dep_conf_file"
local proj_root_dir="$(pwd)"
myprint "${BLUE}entering dependency directory '${DEP_WORKING_DIR}'"