mirror of
https://github.com/opencv/opencv.git
synced 2024-12-02 16:00:17 +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
|