Files

Using maketable.pl

This PERL script can generate some of the more boring sections of the database code.  To run it,
feed in the header files for the object declarations like so:

./maketable.pl ../src/shared/object/*.h

It outputs several files.  The text of these files should be pasted into sections of the server 
code.  These sections are set off with comments like this:

//-----------------------------------------------------------------------------
// From savepackage.auto
// BEGIN AUTO_GENERATED CODE #############################

  ....

// END AUTO_GENERATED CODE   #############################

The utility putauto.pl will paste in any autogenerated files.  Run it like this:

./putauto.pl <file(s) to process, e.g. ../src/shared/database/Schema.h>

The script putall will run putauto.pl on all the necessary files, except for create.ddl

These are the output files:
sql.auto (sql for creating tables, goes into create.ddl)
Schema.h.auto (goes into Schema.h)
ObjectQueries.cpp.auto (etc.)
ObjectQueries.h.auto
MakeDBPackage.cpp.auto
DatabasePackage.h.auto
DatabasePackage.cpp.auto