From cd6cce235837a74b252a369bcc40e7b93f91cee4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:31:55 +0200 Subject: Adding upstream version 1.6.12. Signed-off-by: Daniel Baumann --- dev-bin/clang-format-all.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 dev-bin/clang-format-all.sh (limited to 'dev-bin/clang-format-all.sh') diff --git a/dev-bin/clang-format-all.sh b/dev-bin/clang-format-all.sh new file mode 100755 index 0000000..b8bec61 --- /dev/null +++ b/dev-bin/clang-format-all.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +format="clang-format -i -style=file" + +for dir in apps libGeoIP test; do + c_files=`find $dir -maxdepth 1 -name '*.c'` + if [ "$c_files" != "" ]; then + $format $dir/*.c; + fi + + h_files=`find $dir -maxdepth 1 -name '*.h'` + if [ "$h_files" != "" ]; then + $format $dir/*.h; + fi +done -- cgit v1.2.3