]> andersk Git - moira.git/blame - db/db2tbls.awk
Delimited SQL strings with ' instead of ".
[moira.git] / db / db2tbls.awk
CommitLineData
51e7c423 1# $Source$
2# $Header$
3#
4# This converts the file used to originally create the database
5# into a list of tables.
6
7BEGIN { print "/* This file automatically generated */";
8 print "/* Do not edit */";
9 print "char *tables[] = {";
10}
11
9b94415d 12$1=="CREATE" { printf " \"%s\",\n", $3; }
13$1=="create" && $2=="table" { printf " \"%s\",\n", $3; }
14$1=="create" && $2!="table" { printf " \"%s\",\n", $2; }
51e7c423 15
16END { print " 0,";
17 print "};"; }
This page took 1.520865 seconds and 5 git commands to generate.