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