@ -52,15 +52,15 @@ else
else
else
echo "You didn't have clang-format-diff.py and/or clang-format available in your computer!"
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 "You can download clang-format-diff.py by running: "
echo " curl --location http://goo.gl/iUW1u2 -o ${ CLANG_FORMAT_DIFF } "
echo " curl --location https://tinyurl.com/y2kvokof -o ${ REPO_ROOT } /clang-format-diff.py "
echo "You can download clang-format by running:"
echo "You can download clang-format by running:"
echo " brew install clang-format"
echo " brew install clang-format"
echo " Or"
echo " Or"
echo " apt install clang-format"
echo " apt install clang-format"
echo " This might work too:"
echo " This might work too:"
echo " yum install git-clang-format"
echo " yum install git-clang-format"
echo " Then, move both files (i.e. ${ CLANG_FORMAT_DIFF } and clang-format) to some directory within PATH= ${ PATH } "
echo "Then make sure clang-format is available and executable from \$PATH: "
echo " and make sure ${ CLANG_FORMAT_DIFF } is executable. "
echo " clang-format --version "
exit 128
exit 128
fi
fi
# Check argparse pre-req on interpreter, or it will fail
# Check argparse pre-req on interpreter, or it will fail
@ -82,7 +82,7 @@ else
echo "You have clang-format-diff.py for Python 2 but are using a Python 3"
echo "You have clang-format-diff.py for Python 2 but are using a Python 3"
echo " interpreter ( ${ PYTHON :- python3 } ). "
echo " interpreter ( ${ PYTHON :- python3 } ). "
echo "You can download clang-format-diff.py for Python 3 by running: "
echo "You can download clang-format-diff.py for Python 3 by running: "
echo " curl --location http://goo.gl/iUW1u2 -o ${ REPO_ROOT } /clang-format-diff.py "
echo " curl --location https://tinyurl.com/y2kvokof -o ${ REPO_ROOT } /clang-format-diff.py "
exit 130
exit 130
fi
fi
CLANG_FORMAT_DIFF = " ${ PYTHON :- python3 } $CFD_PATH "
CLANG_FORMAT_DIFF = " ${ PYTHON :- python3 } $CFD_PATH "