Revision 24bd0ba562fd4e10751f0a67c983f333a1fdb8a7 authored by Obi Griffith on 28 August 2013, 00:26:49 UTC, committed by Obi Griffith on 28 August 2013, 00:26:49 UTC
1 parent 35fe10b
Raw File
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