mirror of
https://github.com/opencv/opencv.git
synced 2024-12-11 14:39:11 +08:00
12 lines
313 B
Bash
12 lines
313 B
Bash
#!/bin/bash
|
|
grep ".. cfunction::" *.rst -h |
|
|
python -c "import sys
|
|
print \"opencv_function_names = [\"
|
|
for line in sys.stdin.readlines():
|
|
fname = line.split()[3].strip(' (')
|
|
bpos = fname.find('(')
|
|
if bpos >= 0:
|
|
fname = fname[:bpos]
|
|
print \"'%s',\" % fname
|
|
print \"]\"" > function_names.py
|