rebuild_dependencies

This commit is contained in:
2024-07-18 22:06:35 +03:00
parent b7109ef9fa
commit de9a63f84b
6 changed files with 37 additions and 4 deletions

View File

@@ -5,8 +5,10 @@ try_delete_dir_or_file "$OUTDIR"
myprint "${WHITE}deleting build logs"
rm -rf *.log
project_dir="$(pwd)"
for dep in $ENABLED_DEPENDENCIES; do
load_dependency_config "$DEPENDENCY_CONFIGS_DIR/$dep.config"
cd "$DEP_WORKING_DIR"
exec_command "$DEP_CLEAN_COMMAND"
cd "$project_dir"
done

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
dependencies="$TASK_ARGS"
if [ "$dependencies" = 'all' ]; then
dependencies="$ENABLED_DEPENDENCIES"
fi
if [ ! -z "$dependencies" ]; then
myprint "${BLUE}dependencies to be rebuild: $dependencies"
build_dependencies "$dependencies" true
else
myprint "${YELLOW}no dependencies specified"
fi