mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
a0ae1b2b42
Expose version of embedded tzdata via TZDATA_VERSION in system.build_options. Autogenerate list of shipped timezones. Script to check tzdb updates.
19 lines
533 B
Bash
Executable File
19 lines
533 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e -x
|
|
|
|
source default-config
|
|
|
|
[[ -d "${WORKSPACE}/sources" ]] || die "Run get-sources.sh first"
|
|
|
|
latest_tzdb_version=$(curl -s https://data.iana.org/time-zones/data/version);
|
|
tzdb_version_in_repo=$(cat "${WORKSPACE}/sources/contrib/cctz/testdata/version");
|
|
|
|
if [ "$tzdb_version_in_repo" = "$latest_tzdb_version" ];
|
|
then
|
|
echo "No update for TZDB needed";
|
|
exit 0;
|
|
else
|
|
echo "TZDB update required! Version in repo is ${tzdb_version_in_repo}, latest version is ${latest_tzdb_version}";
|
|
exit 1
|
|
fi;
|