#!/bin/bash DEVTOOLS=.devtools # C C++ OC files SOURCE_SUFFIX='\.(h|c|cpp|cc|hpp|cxx|hxx|m|mm|js)$' # bash case insensitive match shopt -s nocasematch # clang-format if ! command -v clang-format >/dev/null 2>&1; then cat >&2 < brew install clang-format windows -> http://llvm.org/builds/ ubuntu -> sudo apt install clang-format EOF exit 1 fi function regenerateVersionHeader() { VERSION_STRING=$(cat VERSION) IFS='.' read -a VERSION_ARRAY <<<"${VERSION_STRING}" cat > src/version.h <