https://github.com/genome/genome
Raw File
Tip revision: fe78267c98ffd1847440dc1789edaedbe5c5cf42 authored by Thomas B. Mooney on 14 February 2019, 19:10:58 UTC
Merge pull request #1913 from tmooney/prefix_for_output_gatherer
Tip revision: fe78267
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