view make_ER.sh @ 13:eb90cceaee92 MySQLdb

Keyword/property fixes
author adustman
date Mon, 26 Feb 2007 17:24:06 +0000
parents fa8974a41c76
children 7773efbe9b30
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.

"""'
sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h