From: Joel Rosdahl Date: Thu, 13 Feb 2020 20:56:54 +0000 (+0100) Subject: Rename clang-format.sh to run-clang-format X-Git-Tag: v4.0~623 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c65c5dc31ada3a3b69dc534aa6d2426886f15fd9;p=thirdparty%2Fccache.git Rename clang-format.sh to run-clang-format This avoids exposing implementation details. --- diff --git a/dev.mk.in b/dev.mk.in index ddc2b49c0..2cf0003ce 100644 --- 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.'; } diff --git a/misc/clang-format.sh b/misc/run-clang-format similarity index 100% rename from misc/clang-format.sh rename to misc/run-clang-format