diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:31:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:31:55 +0000 |
commit | cd6cce235837a74b252a369bcc40e7b93f91cee4 (patch) | |
tree | 7049356b06fcdcdaf9dbae476f55a43942e7c25f /dev-bin/clang-format-all.sh | |
parent | Initial commit. (diff) | |
download | geoip-cd6cce235837a74b252a369bcc40e7b93f91cee4.tar.xz geoip-cd6cce235837a74b252a369bcc40e7b93f91cee4.zip |
Adding upstream version 1.6.12.upstream/1.6.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dev-bin/clang-format-all.sh')
-rwxr-xr-x | dev-bin/clang-format-all.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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 |