mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
2d7cb03120
Since for dowloading some of files wget logging may take 50% of overall log [1]. [1]: https://clickhouse-builds.s3.yandex.net/14315/c32ff4c98cb3b83a12f945eadd180415b7a3b269/clickhouse_build_check/build_log_761119955_1598923036.txt
21 lines
709 B
Bash
Executable File
21 lines
709 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
[ ! -f public_suffix_list.dat ] && wget -nv -O public_suffix_list.dat https://publicsuffix.org/list/public_suffix_list.dat
|
|
|
|
echo '%language=C++
|
|
%define lookup-function-name is_valid
|
|
%define class-name tldLookupHash
|
|
%readonly-tables
|
|
%includes
|
|
%compare-strncmp
|
|
%{
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
|
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
|
|
#pragma GCC diagnostic ignored "-Wunused-macros"
|
|
%}
|
|
# List generated using https://publicsuffix.org/list/public_suffix_list.dat
|
|
%%' > tldLookup.gperf
|
|
grep -v "//" public_suffix_list.dat | grep . | grep "\." | grep -ve "\..*\..*" >> tldLookup.gperf
|
|
echo "%%" >> tldLookup.gperf
|