2009-01-20 20:50 Hyrum K. Wright <hyrum_at_hyrumwright.org> napisaĆ(a):
> Author: hwright
> Date: Tue Jan 20 11:50:46 2009
> New Revision: 35351
>
> Log:
> Add a helper script which will transform a file full of SQL commands into a
> header file suitable for inclusion in a standard C file and use with the
> Subversion SQLite APIs. The goal here is that we can maintain our SQL schema
> directly as such, and let this script do the appropriate transformation as
> part of autogen.sh.
>
> * build/transform-sql.py:
> New.
>
> Added:
> trunk/build/transform-sql.py (contents, props changed)
>
> Added: trunk/build/transform-sql.py
> URL: http://svn.collab.net/viewvc/svn/trunk/build/transform-sql.py?pathrev=35351
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ trunk/build/transform-sql.py Tue Jan 20 11:50:46 2009 (r35351)
> @@ -0,0 +1,50 @@
> +#!/usr/bin/env python
> +#
> +# transform-sql.py -- create a header file with the appropriate SQL variables
> +# from an SQL file
> +#
> +
> +
> +import os
> +import re
Why do you need 're' module?
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1040882
Received on 2009-01-21 12:16:50 CET