You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
535 B
19 lines
535 B
#!/usr/bin/env bash |
|
set -eu |
|
|
|
PATTERN="-e ." |
|
|
|
if [ $# -gt 0 ] |
|
then |
|
PATTERN="$1" |
|
fi |
|
|
|
exec find boards src platforms \ |
|
-path platforms/nuttx/NuttX -prune -o \ |
|
-path src/drivers/uavcan/libuavcan -prune -o \ |
|
-path src/lib/DriverFramework -prune -o \ |
|
-path src/lib/ecl -prune -o \ |
|
-path src/lib/matrix -prune -o \ |
|
-path src/lib/systemlib/uthash -prune -o \ |
|
-path src/modules/micrortps_bridge/micro-CDR -prune -o \ |
|
-type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) | grep $PATTERN
|
|
|