mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Modified find to work on Mac
Do basic find without regular expressions Use grep -E to do the regular expression matching Use awk to reconstruct an equivalent find -print0 output
This commit is contained in:
committed by
Baldur Karlsson
parent
e4cd163c5f
commit
add33d484c
@@ -57,4 +57,4 @@ if ! valid_clang_format; then
|
||||
fi;
|
||||
|
||||
# Search through the code that should be formatted, exclude any non-renderdoc code.
|
||||
find qrenderdoc/ renderdoc/ renderdoccmd/ renderdocshim/ util/test/demos/ -type f -regex '.*\(/3rdparty/\|/official/\|resource.h\).*' -prune -o -regex '.*\.\(m\|mm\|c\|cpp\|h\|inl\|vert\|frag\|geom\|comp\|hlsl\)$' -print0 | xargs -0 -n1 $CLANG_FORMAT -i -style=file
|
||||
find qrenderdoc/ renderdoc/ renderdoccmd/ renderdocshim/ util/test/demos/ -name "3rdparty" -prune -o -name "official" -prune -o -print | grep -E ".*\.(h|c|cpp|m|mm|inl|geom|frag|vert|comp|hlsl)$" | grep -E -v "resource.h$" | awk '{printf("%s%c",$0,0)}' | xargs -0 -n1 $CLANG_FORMAT -i -style=file
|
||||
|
||||
Reference in New Issue
Block a user