Autotest: Support handicap specification
[pachi/t.git] / t-play / autotest / autotest-prune
blob1bc713c235aae303de5619da17ea4d2932e34061
1 #!/bin/sh
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