0ad/build/workspaces/clean-workspaces.sh
Ralph Sennhauser 6f5ac7c4ae Fix issues pointed out by shellcheck
Some are real bugs, some are bashisms, but most is zealous quoting of
variables.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-08-28 18:23:18 +02:00

16 lines
546 B
Bash
Executable File

#!/bin/sh
# This script remains for backwards compatibility, but consists of a single
# git command.
cd "$(dirname "$0")/../../" || exit 1
git clean -fx build source
echo "WARNING: This script has been split with libraries/clean-source-libs.sh"
echo "If you want to fix a problem with bundled libs, it's the other script"
echo "you want to invoke."
echo "WARNING: This script is deprecated and might be removed in a future"
echo "release. You can run 'git clean -f build source' from the repository"
echo "root to clean up build workspaces."