trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [10/10] trafficserver git commit: Make the version of clang-format changeable.
Date Fri, 22 Jan 2016 03:23:58 GMT
Make the version of clang-format changeable.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/e7a4dc62
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/e7a4dc62
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/e7a4dc62

Branch: refs/heads/master
Commit: e7a4dc62ab5bd718ee869e6041c90062d1548140
Parents: 62d15ed
Author: James Peach <jpeach@apache.org>
Authored: Thu Jan 21 18:51:40 2016 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Thu Jan 21 19:21:36 2016 -0800

----------------------------------------------------------------------
 tools/clang-format.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e7a4dc62/tools/clang-format.sh
----------------------------------------------------------------------
diff --git a/tools/clang-format.sh b/tools/clang-format.sh
index 7f6478d..f6d31b9 100755
--- a/tools/clang-format.sh
+++ b/tools/clang-format.sh
@@ -19,8 +19,9 @@
 #  limitations under the License.
 
 DIR=${1:-.}
+FORMAT=${FORMAT:-clang-format}
 
 for file in $(find $DIR -iname \*.[ch] -o -iname \*.cc); do
     echo $file
-    clang-format -i $file
+    $FORMAT -i $file
 done


Mime
View raw message