This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
usage() { | |
cat <<EOF >&2 | |
USAGE: c++expr [-c CXX | -C | -I] [-i INCLUDE] [-b STEPS] [-t TESTS] [-o FILE] [-O CXX_OPTS...] [-g 'GLOBAL CODE'] 'MAIN CODE' | |
OPTIONS: | |
-c CXX use specified c++ compiler | |
-C use cmake | |
-I integrate into ClickHouse build tree in current directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git_is_inside() { | |
git rev-parse --is-inside-work-tree 2>&1 | |
} | |
git_root() { | |
if [[ $(git_is_inside) != "true" ]]; then | |
pwd | |
return |