https://github.com/genome/genome
Raw File
Tip revision: 93da51e35828f2ea7bc04892b0081f2f359d3cc7 authored by Thomas Mooney on 15 May 2014, 14:09:15 UTC
Ensure the value of "show" is set before listing.
Tip revision: 93da51e
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