File: install_format_tools.sh

package info (click to toggle)
opentelemetry-cpp 1.19.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,744 kB
  • sloc: cpp: 79,029; sh: 1,640; makefile: 43; python: 31
file content (27 lines) | stat: -rwxr-xr-x 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

set -e

CLANG_VERSION=18
CMAKE_FORMAT_VERSION=0.6.13
BUILDIFIER_VERSION=3.5.0

#
# This script expects ubuntu:24.04
#

apt update

# Install clang-format
apt install -y clang-format-${CLANG_VERSION} python3 python3-pip git curl
# ln /usr/bin/clang-format-${CLANG_VERSION} /usr/bin/clang-format

# Install cmake_format
pip3 install --break-system-packages cmake_format==${CMAKE_FORMAT_VERSION}

# Install buildifier
curl -L -o /usr/local/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/${BUILDIFIER_VERSION}/buildifier
chmod +x /usr/local/bin/buildifier