File: installUbuntu22and24.sh

package info (click to toggle)
dlt-viewer 2.27.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,196 kB
  • sloc: cpp: 31,376; ansic: 4,224; xml: 492; sh: 244; makefile: 81
file content (20 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -ex

id
env
pwd

UBUNTU_VERSION=$(lsb_release -rs)
QT_PACKAGES=""
# for ubuntu 22 install QT 5, for ubuntu 24 install QT 6
if [ "$UBUNTU_VERSION" = "22.04" ]; then
    QT_PACKAGES="qtbase5-dev libqt5serialport5-dev"
else
    QT_PACKAGES="qt6-base-dev libqt6serialport6-dev"
fi

sudo apt update
sudo apt-get install -y --no-install-recommends ninja-build ${QT_PACKAGES}

g++ --version