-
Notifications
You must be signed in to change notification settings - Fork 0
/
f.sh
executable file
·3 lines (3 loc) · 952 Bytes
/
f.sh
1
2
3
p=$1
s=$2
find $p -type f -exec bash -c "echo \"{}\" | grep -E -q -v \"/(include|cmake|perl4|perl5|perl6|site-packages)/\" && (echo 'testing llvm-nm \"{}\"' && if llvm-nm \"{}\" |& grep -E \"$s\" |& grep -v 'no symbols' |& grep -v 'file format' |& grep -E \"$s\" --color; then echo 'contains symbols: \"{}\"' ; fi ; echo 'testing llvm-nm -D \"{}\"' && if llvm-nm -D \"{}\" |& grep -E \"$s\" |& grep -v 'no symbols' |& grep -v 'file format' |& grep -E \"$s\" --color; then echo 'contains symbols: \"{}\"' ; fi ; echo 'testing llvm-objdump -t \"{}\"' && if llvm-objdump -t \"{}\" |& grep -E \"$s\" |& grep -v 'no symbols' |& grep -v 'file format' |& grep -E \"$s\" --color; then echo 'contains symbols: \"{}\"' ; fi ; echo 'testing llvm-objdump -T \"{}\"' && if llvm-objdump -T \"{}\" |& grep -E \"$s\" |& grep -v 'no symbols' |& grep -v 'file format' |& grep -E \"$s\" --color; then echo 'contains symbols: \"{}\"' ; fi) || (echo 'skipping \"{}\"')" \;