From 4b04addfce99280b8b1752be04feac544dfde8eb Mon Sep 17 00:00:00 2001 From: Raza Hussain Date: Tue, 21 Mar 2017 11:04:06 -0700 Subject: [PATCH] updated solution if "make format" command fails Summary: Closes https://github.com/facebook/rocksdb/pull/2016 Differential Revision: D4747003 Pulled By: yiwu-arbug fbshipit-source-id: c1e2c5a --- build_tools/format-diff.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_tools/format-diff.sh b/build_tools/format-diff.sh index 3c5605079..868452a92 100755 --- a/build_tools/format-diff.sh +++ b/build_tools/format-diff.sh @@ -9,10 +9,12 @@ fi # Check clang-format-diff.py if ! which $CLANG_FORMAT_DIFF &> /dev/null then - echo "You didn't have clang-format-diff.py available in your computer!" - echo "You can download it by running: " + echo "You didn't have clang-format-diff.py and/or clang-format available in your computer!" + echo "You can download clang-format-diff.py by running: " echo " curl --location http://goo.gl/iUW1u2 -o ${CLANG_FORMAT_DIFF}" - echo "and move ${CLANG_FORMAT_DIFF} to some directory within PATH=${PATH}" + echo "You can download clang-format by running: " + echo " brew install clang-format" + echo "Then, move both files (i.e. ${CLANG_FORMAT_DIFF} and clang-format) to some directory within PATH=${PATH}" exit 128 fi