Mercurial > p > mysql-python > mysqldb-2
annotate make_ER.sh @ 17:7c7a89123d65 MySQLdb
egg names already include python versoin, so don't add it to package name.
author | adustman |
---|---|
date | Tue, 27 Feb 2007 00:58:49 +0000 |
parents | 7773efbe9b30 |
children |
rev | line source |
---|---|
8
fa8974a41c76
New error handling code, plus some small fixes from 1.2
adustman
parents:
diff
changeset
|
1 #!/bin/sh |
14 | 2 echo '""" |
3 MySQL ER Constants | |
4 ------------------ | |
8
fa8974a41c76
New error handling code, plus some small fixes from 1.2
adustman
parents:
diff
changeset
|
5 |
fa8974a41c76
New error handling code, plus some small fixes from 1.2
adustman
parents:
diff
changeset
|
6 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
|
7 that may occur. |
fa8974a41c76
New error handling code, plus some small fixes from 1.2
adustman
parents:
diff
changeset
|
8 |
14 | 9 """ |
10 __revision__ = "$Revision$"[11:-2] | |
11 __author__ = "$Author$"[9:-2] | |
12 ' | |
8
fa8974a41c76
New error handling code, plus some small fixes from 1.2
adustman
parents:
diff
changeset
|
13 sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h |