Remove bin2c

This commit is contained in:
Eelco Dolstra 2012-10-03 16:54:40 -04:00
parent a562d544d8
commit 7586095504
7 changed files with 4 additions and 35 deletions

View file

@ -29,4 +29,4 @@ AM_CXXFLAGS = -Wall \
local-store.lo: schema.sql.hh
%.sql.hh: %.sql
../bin2c/bin2c schema < $< > $@ || (rm $@ && exit 1)
sed -e 's/"/\\"/g' -e 's/.*/"\0\\n"/' < $< > $@ || (rm $@ && exit 1)

View file

@ -374,7 +374,9 @@ void LocalStore::openDB(bool create)
/* Initialise the database schema, if necessary. */
if (create) {
const char * schema =
#include "schema.sql.hh"
;
if (sqlite3_exec(db, (const char *) schema, 0, 0, 0) != SQLITE_OK)
throwSQLiteError(db, "initialising database schema");
}