|
@@ -7,6 +7,23 @@ cd "${script_path}/.."
|
|
|
|
|
|
MISSING_FLAGS=n
|
|
|
|
|
|
+find_all_source_files () {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ for file in "$@"; do
|
|
|
+ if [[ ("${file}" =~ \.cpp || "${file}" =~ \.h || "${file}" =~ \.in) ]]; then
|
|
|
+ echo "$file"
|
|
|
+ fi
|
|
|
+ done
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
while IFS= read -r FLAG; do
|
|
|
|
|
@@ -22,16 +39,7 @@ done < <(
|
|
|
'*.h' \
|
|
|
'*.in'
|
|
|
else
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- for file in "$@"; do
|
|
|
- if [[ ("${file}" =~ \.cpp || "${file}" =~ \.h || "${file}" =~ \.in) ]]; then
|
|
|
- echo "$file"
|
|
|
- fi
|
|
|
- done
|
|
|
+ find_all_source_files "$@"
|
|
|
fi \
|
|
|
| xargs grep -E '(_DEBUG|DEBUG_)' \
|
|
|
| sed -re 's,^.*[^a-zA-Z0-9_]([a-zA-Z0-9_]*DEBUG[a-zA-Z0-9_]*).*$,\1,' \
|