mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
0939387514
Move copy_headers.sh and formath.sh from root. Debian: use default build dir (obj-x86_64-linux-gnu) Debian: add test after build (GLIBC_required_version) cmake: dont run copy headers if already copied
16 lines
508 B
Bash
Executable File
16 lines
508 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Format almost all code with current clang-format settings
|
|
|
|
cd `readlink -f $(dirname $0)`/../..
|
|
|
|
clang_format=`bash -c "compgen -c clang-format | grep 'clang-format-[[:digit:]]' | sort --version-sort --reverse | head -n1"`
|
|
if [ ! -z $clang_format ]; then
|
|
find dbms libs utils -name *.cpp -or -name *.h -exec $clang_format -i {} + ;
|
|
else
|
|
echo clang-format missing. try to install:
|
|
echo sudo apt install clang-format
|
|
echo or
|
|
echo sudo apt install clang-format-3.9
|
|
fi
|