Adding debian version 6.12.33-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
79d69e5050
commit
09ce90cf76
1602 changed files with 165255 additions and 0 deletions
20
debian/rules.d/scripts/mod/gendef.py
vendored
Executable file
20
debian/rules.d/scripts/mod/gendef.py
vendored
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/python3
|
||||
import re
|
||||
import sys
|
||||
|
||||
for line in open(sys.argv[1]):
|
||||
match = re.search(r'getopt\(argc, argv, "([\w:]*?)"\)', line)
|
||||
if match:
|
||||
options = match.group(1)
|
||||
break
|
||||
else:
|
||||
raise RuntimeError
|
||||
|
||||
print('#define GETOPT_OPTIONS "%s"' % options)
|
||||
|
||||
print('#define GETOPT_CASE', end=' ')
|
||||
for c in options:
|
||||
if c == ':' or c == 'T':
|
||||
continue
|
||||
print("case '%c':" % c, end=' ')
|
||||
print()
|
Loading…
Add table
Add a link
Reference in a new issue