opencv/doc/plastex/find_function_names.sh

12 lines
313 B
Bash
Raw Normal View History

#!/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