Merge pull request #50 from lemonsqueeze/can_countercap
[pachi.git] / t-play / autotest / autotest-prune
blobae26c51f875b07922a0909b48b26e636188b0973
1 #!/bin/bash
2 # This is autotest pruning tool, removing info about specified old
3 # pairings. Note that this removes only pairing results, you need
4 # to adjust the rc file manually if you haven't removed the pairing
5 # specifiers from there yet.
7 mask="$1"
8 if [ -z "$mask" ]; then
9 echo "Usage: $0 MASK" >&2
10 echo "MASK can be pairing name, or a glob pattern (*, ?)." >&2
11 echo "Use \`$0 *\` to remove all pairings." >&2
12 exit 1
14 . ./autotest-lib
16 echo "Removing $(ls r/$mask.dat | wc -l) result pairs..."
17 rm -f r/$mask.dat r/$mask.summary.dat r/$mask.html r/$mask.beacon r/$mask.error
18 rm -rf c/*/$mask