From 93861485fbf457894c4a48a1a34c16de980388b2 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Wed, 17 Nov 2010 00:50:38 +0000 Subject: [PATCH] Add a script to clean up broken builds of bundled libraries This was SVN commit r8632. --- build/workspaces/clean-workspaces.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 build/workspaces/clean-workspaces.sh diff --git a/build/workspaces/clean-workspaces.sh b/build/workspaces/clean-workspaces.sh new file mode 100755 index 0000000000..001dc7ad1d --- /dev/null +++ b/build/workspaces/clean-workspaces.sh @@ -0,0 +1,25 @@ +#!/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-tip/src && rm -rf ./build-debug) +(cd ../../libraries/spidermonkey-tip/src && rm -rf ./build-release) +(cd ../../libraries/nvtt/src && rm -rf ./build) + +(cd ../premake/src && make clean) + +echo "Cleaning build output..." + +# Remove workspaces/gcc +rm -rf ./gcc + +echo +echo "Done. Try running update-workspaces.sh again now."