File: install-deps.sh

package info (click to toggle)
device-tree-compiler 1.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,116 kB
  • sloc: ansic: 13,916; sh: 1,200; asm: 713; lex: 522; python: 507; yacc: 499; makefile: 313; perl: 74
file content (32 lines) | stat: -rwxr-xr-x 955 bytes parent folder | download
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
28
29
30
31
32
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later

if [ -f /etc/os-release ]
then
    . /etc/os-release
else
    echo "ERROR: OS name is not provided."
    exit 1
fi

if [ "$NAME" = "Arch Linux" ]
then
    pacman -Syu --needed --noconfirm bison diffutils flex gcc git libyaml \
    make meson pkgconf python python-setuptools-scm swig valgrind which
elif [ "$NAME" = "Alpine Linux" ]
then
    apk add build-base bison coreutils flex git yaml yaml-dev python3-dev \
    meson py3-setuptools_scm swig valgrind
elif [ "$NAME" = "Fedora Linux" ]
then
    dnf install -y bison diffutils flex gcc git libyaml libyaml-devel \
    make meson python3-devel python3-setuptools swig valgrind which
elif [ "$NAME" = "Ubuntu" ]
then
    apt update
    apt install -yq build-essential bison flex git libyaml-dev pkg-config \
    meson python3-dev python3-setuptools python3-setuptools-scm swig valgrind
else
    echo "ERROR: OS name is not provided."
    exit 1
fi