goal-tools/tools/gather_data.sh
Doug Hellmann 4221432946 split out data collection from reporting
Change-Id: I9c70100b95db204dc5e2d4273f34950111c7b899
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-05-02 22:14:34 -04:00

20 lines
418 B
Bash
Executable File

#!/bin/bash -xe
if [ ! -f .tox/venv/bin/activate ]; then
tox -e venv --notest
fi
source .tox/venv/bin/activate
for input in $*
do
txt_file=${input%.qry}.txt
dat_file=${input%.qry}.dat
# Query gerrit
who-helped -v --debug changes query "$(cat $input)" $txt_file
# Build the raw contribution data file
who-helped --debug contributions list -f csv $txt_file \
| tee $dat_file
done