keep local branches alive when running clean

This commit is contained in:
Rudolf Polzer 2012-01-29 18:45:16 +01:00
parent 5aec9f4acb
commit ca878e8b74

View File

@ -12,7 +12,8 @@ echo " ================="
echo echo
if [ -f ./all ]; then if [ -f ./all ]; then
echo "WARNING: running this script will destroy ANY local changes you" echo "WARNING: running this script will destroy ANY local changes you"
echo "might have on the repository that haven't been pushed yet." echo "might have on the repository that haven't been pushed or stored"
echo "in a local branch yet."
echo echo
if [ x"$1" != x"--yes" ]; then if [ x"$1" != x"--yes" ]; then
echo "Are you absolutely sure you want to run this?" echo "Are you absolutely sure you want to run this?"
@ -34,7 +35,7 @@ if [ -f ./all ]; then
fi fi
if [ -f ./all ]; then if [ -f ./all ]; then
./all clean --reclone ./all clean -fU -m -r
./all compile -r ./all compile -r
export USE_GDB=no export USE_GDB=no
set -- ./all run "$@" set -- ./all run "$@"
@ -70,7 +71,7 @@ for e in omg low med normal high ultra ultimate; do
cat data/benchmark.log >> data/the-big-benchmark.log cat data/benchmark.log >> data/the-big-benchmark.log
done done
if [ -f ./all ]; then if [ -f ./all ]; then
./all clean -r -f -u ./all clean -r
fi fi
rm -f data/benchmark.log rm -f data/benchmark.log