https://github.com/genome/genome
Raw File
Tip revision: a157fec13674b4efd2e4adead5274cbb8e5f29b3 authored by Thomas B. Mooney on 13 September 2017, 20:24:46 UTC
Merge pull request #1768 from tmooney/oltp_and_dwrac_are_lowercase
Tip revision: a157fec
rebuild-meta-db
#!/bin/bash
set -o errexit

echo "Creating SQLite DBs:"
for DB_TXT in $(find $WORKSPACE -iname '*sqlite3-dump' -or -iname '*sqlite3n-dump'); do
    DB_BIN=${DB_TXT/-dump/}
    rm -f "$DB_BIN"
    sqlite3 "$DB_BIN" < "$DB_TXT"
    echo -e "\t${DB_BIN/$WORKSPACE\//}"
done
echo "Done creating SQLite DBs."
back to top