]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Rename clang-format.sh to run-clang-format
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 13 Feb 2020 20:56:54 +0000 (21:56 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 13 Feb 2020 20:56:54 +0000 (21:56 +0100)
This avoids exposing implementation details.

dev.mk.in
misc/run-clang-format [moved from misc/clang-format.sh with 100% similarity]

index ddc2b49c0aee0f379255b647678ff23c6c586020..2cf0003ce05fe34c0a4381aaa979f0c9824a88fe 100644 (file)
--- a/dev.mk.in
+++ b/dev.mk.in
@@ -200,7 +200,7 @@ shellcheck: test/suites/*.bash
 .PHONY: format
 format:
        @echo $(non_third_party_headers) $(non_third_party_sources) $(test_sources) | xargs -n1 -P8 \
-           misc/clang-format.sh
+           misc/run-clang-format
 
 # Not using parallel execution because target is most likely being run on non-interactive CI system,
 # so no user is waiting for immediate results, and it avoids possibly interleaved output.
@@ -208,7 +208,7 @@ format:
 check_format:
        @[ -t 1 ] && export cf_diff_color="--color=always"; \
        echo $(non_third_party_headers) $(non_third_party_sources) $(test_sources) | xargs -n1 -P1 \
-           misc/clang-format.sh --check || \
+           misc/run-clang-format --check || \
                {  echo; echo "Error: Sources are not formatted with clang-format."; \
                   echo 'Run "make format" or apply the above diff.'; }
 
similarity index 100%
rename from misc/clang-format.sh
rename to misc/run-clang-format