annotate make_ER.sh @ 8:fa8974a41c76 MySQLdb

New error handling code, plus some small fixes from 1.2
author adustman
date Sun, 11 Feb 2007 21:36:29 +0000
parents
children 7773efbe9b30
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
1 #!/bin/sh
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
2 echo '"""MySQL ER Constants
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
3
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
4 These constants are error codes for the bulk of the error conditions
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
5 that may occur.
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
6
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
7 """'
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
8 sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h