added project name printing

This commit is contained in:
Timerix22 2023-02-13 21:48:30 +06:00
parent 92de4ab1d7
commit 73b8afd7ce
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function call_task {
TASK="$1" TASK="$1"
source cbuild/init.sh source cbuild/init.sh
myprint "${CYAN}===========[$TASK]===========" myprint "${CYAN}===========[$TASK]==========="
myprint "${WHITE}project: ${CYAN}$PROJECT"
try_exec_script "$PRE_TASK_SCRIPT" try_exec_script "$PRE_TASK_SCRIPT"
exec_script "$TASK_SCRIPT" exec_script "$TASK_SCRIPT"
try_exec_script "$POST_TASK_SCRIPT" try_exec_script "$POST_TASK_SCRIPT"

View File

@ -46,9 +46,12 @@ if [ ! -f current.config ]; then
myprint "${YELLOW}New config created from the default.\nEdit it." myprint "${YELLOW}New config created from the default.\nEdit it."
exit exit
fi fi
myprint "${BLUE}reading ./current.config" myprint "${BLUE}reading ./current.config"
source current.config source current.config
myprint "${WHITE}project: ${CYAN}$PROJECT"
myprint "${WHITE}current.config cbuild version: ${CYAN}$CBUILD_VERSION" myprint "${WHITE}current.config cbuild version: ${CYAN}$CBUILD_VERSION"
myprint "${WHITE}installed cbuild version: ${CYAN}$INSTALLED_CBUILD_VERSION" myprint "${WHITE}installed cbuild version: ${CYAN}$INSTALLED_CBUILD_VERSION"
myprint "${WHITE}current.config version: ${CYAN}$CONFIG_VERSION" myprint "${WHITE}current.config version: ${CYAN}$CONFIG_VERSION"