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