Elvira Khabirova | 0929422 | 2015-08-04 01:47:02 +0300 | [diff] [blame] | 1 | #!/bin/sh -e |
2 | |||||
3 | exec > mpers.am | ||||
4 | |||||
5 | echo "# Generated by $0; do not edit." | ||||
6 | echo -n 'mpers_source_files = ' | ||||
7 | |||||
8 | sed -n '/^strace_SOURCES[[:space:]]*=/,/^[[:space:]]*# end of strace_SOURCES/ s/^[[:space:]]*\([[:alnum:]][^.]*\.c\)[[:space:]]*\\$/\1/p' Makefile.am | | ||||
9 | xargs -r grep -lx '#[[:space:]]*include[[:space:]]\+MPERS_DEFS' | | ||||
10 | tr '\n' ' ' | ||||
11 | echo |