mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
16 lines
378 B
Bash
16 lines
378 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
ROOT_PATH="$(git rev-parse --show-toplevel)"
|
||
|
IFS=$'\t'
|
||
|
|
||
|
echo "// autogenerated by $0"
|
||
|
echo "const char * library_licenses[] = {"
|
||
|
${ROOT_PATH}/utils/list-licenses/list-licenses.sh | while read row; do
|
||
|
arr=($row)
|
||
|
|
||
|
echo "\"${arr[0]}\", \"${arr[1]}\", \"${arr[2]}\", R\"heredoc($(cat "${ROOT_PATH}/${arr[2]}"))heredoc\","
|
||
|
echo
|
||
|
done
|
||
|
echo "nullptr"
|
||
|
echo "};"
|