view make_ER.sh @ 54:6e31278d3433 MySQLdb

There's no good reason to delay imports when the module is (1) useless without it or (2) you do the same late import more than once.
author kylev
date Mon, 23 Feb 2009 23:52:44 +0000
parents 7773efbe9b30
children
line wrap: on
line source

#!/bin/sh
echo '"""
MySQL ER Constants
------------------

These constants are error codes for the bulk of the error conditions
that may occur.

"""
__revision__ = "$Revision$"[11:-2]
__author__ = "$Author$"[9:-2]
'
sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h