0ad/build/workspaces/clean-workspaces.sh
historic_bruno 1389f11b6e Applies Yves' latest patch for premake4.
Fixes test generation path in XCode and MSVC.
Fixes PCH dependency tracking in GCC. Fixes #903.
Fixes PCH being included in its own input (caused GCC bus error).
Ensures premake4 gets rebuilt on *nix after running clean-workspaces.sh.
Updates Windows premake4 binary.

This was SVN commit r10154.
2011-09-01 01:58:04 +00:00

28 lines
840 B
Bash
Executable file

#!/bin/sh
# (We don't attempt to clean up every last file here - output in
# binaries/system/ will still be there, etc. This is mostly just
# to quickly fix problems in the bundled dependencies.)
cd "$(dirname $0)"
# Now in build/workspaces/ (where we assume this script resides)
echo "Cleaning bundled third-party dependencies..."
(cd ../../libraries/fcollada/src && rm -rf ./output)
(cd ../../libraries/spidermonkey && rm -f .already-built)
(cd ../../libraries/spidermonkey && rm -rf ./js-1.8.5)
(cd ../../libraries/nvtt/src && rm -rf ./build)
(cd ../premake/src && make clean)
(cd ../premake/premake4/build/gmake.unix && make clean)
echo "Cleaning build output..."
# Remove workspaces/gcc if present
rm -rf ./gcc
# Remove workspaces/xcode3 if present
rm -rf ./xcode3
echo
echo "Done. Try running update-workspaces.sh again now."