File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 3737echo " Using clang-format ${CLANG_FORMAT_EXE} with arguments ${CLANG_FORMAT_ARG} ."
3838
3939clang_format_version=" $( ${CLANG_FORMAT_EXE} --version) "
40- currentver=" $( ${CLANG_FORMAT_EXE} --version | cut -d ' ' -f3 | tr -dc ' 0-9 ' ) "
41- if [ $ currentver -lt 1200 ]; then
40+ currentver=" $( ${CLANG_FORMAT_EXE} --version | sed ' s/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/ ' | sed ' s/\.//g ' ) "
41+ if [ " ${ currentver:= 0} " -lt 1200 ]; then
4242 echo " clang-format version is $clang_format_version . We require version 12."
4343 exit 1
4444fi
4545
46- if [ $ currentver -ge 1300 ]; then
46+ if [ " ${ currentver:= 0} " -ge 1300 ]; then
4747 echo " clang-format version is $clang_format_version . We require version 12."
4848 exit 1
4949fi
5050
51-
5251# Setup SST-Core Directories to be skipped for clang-format checks
5352DIRS_TO_SKIP=" -path ./build "
5453DIRS_TO_SKIP=" $DIRS_TO_SKIP -or -path ./src/sst/core/libltdl"
You can’t perform that action at this time.
0 commit comments