]> andersk Git - moira.git/blob - db/db2tbls_sql.awk
Used /bin/sh format instead of /bin/csh format, by accident.
[moira.git] / db / db2tbls_sql.awk
1 #       $Source$
2 #       $Header$
3 #
4 #       This converts the file used to originally create the database
5 #       into a list of tables.
6
7 BEGIN { print "/* This file is automatically generated */";
8         print "/* Do not edit */";
9         print "char *tables[] = {";
10 }
11
12 /^CREATE TABLE/ { printf "      \"%s\",\n", $3; }
13
14 END   { print " 0,";
15         print "};"; }
This page took 0.04243 seconds and 5 git commands to generate.