forked from 0ad/0ad
Ralph Sennhauser
abdda50892
This updates shell scripts to use a consistent style that can be enforced via pre-commit hook. As for choosing tabs over spaces, some arguments are: - tabs can help people with visual impairment - tabs allow for indenting heredocs in bash - tabs are the default for the tool shfmt Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
22 lines
641 B
Bash
Executable File
22 lines
641 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This short script allows one to reset source libraries to a clean state without
|
|
# having to redownload everything.
|
|
# (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 libraries/ (where we assume this script resides)
|
|
|
|
echo "Cleaning bundled third-party dependencies..."
|
|
|
|
if [ -e source/.svn ]; then
|
|
(cd source && svn revert -R . && svn st --no-ignore | cut -c 9- | xargs rm -rf)
|
|
else
|
|
rm -rf source
|
|
fi
|
|
|
|
echo
|
|
echo "Done. Try running build-source-libs.sh again now."
|