[tools] Rewrite clean_indexes

This commit is contained in:
Ilya Zverev 2015-10-01 15:01:50 +03:00
parent 2081e75023
commit 7ec717e088

7
tools/unix/clean_indexes.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# Removes indices after an app run. You can pass a path as the first argument.
set -u -x
TARGET="${1:-$(dirname "$0")/../../data}"
for mwm in "$TARGET/"*.mwm; do
rm -rf "$TARGET/$(basename "$mwm" .mwm)"
done