Files
goal-tools/tools/build_db.sh
Doug Hellmann 280cf02610 new command to build sql database directly from gerrit
Rather than downloading the review data in one command and then
re-processing it to build a sql database in another, just move
directly from gerrit to sqlite.

Change-Id: I01545ac8e88f40b5b49148571d93fa16463e9624
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2019-01-07 18:37:34 -05:00

17 lines
299 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
db_file=${input%.qry}.db
who-helped -v --debug database create \
--force \
"$(cat $input)" \
"$db_file"
done