DEADSOFTWARE
GIT
/
REPO
/
FRED-BOY
Projects
/
bbcp.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
OpenBSD errno to string CASE generator added
[bbcp.git]
/
Trurl-based
/
_OpenBSD_
/
Lin
/
Mod
/
gen-Libc
/
mkstrerrnocase.py
1
#! /usr/bin/env python2.7
2
3
import
sys
,
string
4
5
MOD
=
'Libc'
6
7
def
main
():
8
while True
:
9
line
=
sys
.
stdin
.
readline
()
10
if
line
==
''
:
11
break
12
code
,
s
=
string
.
split
(
line
.
rstrip
(),
', '
,
maxsplit
=
1
)
13
s1
=
s
[
0
].
lower
() +
s
[
1
:]
14
print
'|
%s
.
%s
: s := "
%s
,
%s
"'
% (
MOD
,
code
,
code
,
s1
)
15
16
if
__name__
==
'__main__'
:
17
main
()