1#!/bin/bash 2# 3# Install necessary softwares for Ubuntu. 4 5sudo apt-get update 6sudo apt-get install -y \ 7 gcc-multilib \ 8 git \ 9 g++ \ 10 python3-pip \ 11 ninja-build \ 12 unifdef \ 13 p7zip-full \ 14 tofrodos \ 15 gawk \ 16 software-properties-common 17 18wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add - 19CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//') 20sudo apt-add-repository -y "deb https://apt.kitware.com/ubuntu/ $CODENAME main" 21sudo apt-get -y install cmake 22 23python3 -m pip install --upgrade pip 24pip3 install gcovr==4.1 25pip3 install --upgrade cmake 26