mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
13 lines
562 B
Bash
13 lines
562 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# This script searches for ya.make.in files in repository and generates ya.make files from them.
|
||
|
# ya.make.in is a template with substitutions in form of <? command ?>
|
||
|
# command is interpreted by bash and output is put in place of substitution
|
||
|
|
||
|
ROOT_PATH=$(git rev-parse --show-toplevel)
|
||
|
EXCLUDE_DIRS='build/|integration/|widechar_width/|glibc-compatibility/|memcpy/|consistent-hashing'
|
||
|
|
||
|
find "${ROOT_PATH}" -name 'ya.make.in' | while read path; do
|
||
|
(cd $(dirname "${path}") && perl -pne 's/<\?(.+?)\?>/`$1`/e' < "${path}" > "${path/.in/}")
|
||
|
done
|