rebuild_dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
11
default_tasks/rebuild_dependencies.sh
Normal file
11
default_tasks/rebuild_dependencies.sh
Normal 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
|
||||
Reference in New Issue
Block a user