# This converts the file used to originally create the database
# into a list of tables.
-BEGIN { print "/* This file automatically generated */";
+BEGIN { print "/* This file is automatically generated */";
print "/* Do not edit */";
print "char *tables[] = {";
}
-/^create/ { printf " \"%s\",\n", $2; }
+/^CREATE TABLE/ { printf " \"%s\",\n", $3; }
END { print " 0,";
print "};"; }