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>
17 lines
299 B
Bash
Executable File
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
|