From 7025ff4280f06f8d087dfca772ba16797cd811bb Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 18 Sep 2018 00:16:13 +0300 Subject: [PATCH] format.sh don't format bundled src --- format.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format.sh b/format.sh index 7bb076d0..69a738d8 100755 --- a/format.sh +++ b/format.sh @@ -1,9 +1,9 @@ #!/bin/bash echo -n "Running dos2unix " -find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'" +find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'" echo echo -n "Running clang-format " -find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "clang-format -i {}; echo -n '.'" +find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'" echo