/
githubmirror
/
authselect
Обзор
Документация
Войти
/
githubmirror
/
authselect
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/commands/install-build-deps.sh
44 строки
933 B
Pavel Březina
ci: run system tests on pull request and push
06 авг 2024, 13:18
06 авг 2024, 13:18
851abf1
Код
Авторство
О чём код?
# # Install build dependencies. # set -x if [ ! -f "/etc/os-release" ]; then die "Unknown release, please install dependencies manualy." fi . /etc/os-release case "$ID" in fedora | centos | rhel) [ ! -f "rpm/authselect.spec.in" ] && die "Missing file: rpm/authselect.spec.in" [ -f "authselect.spec" ] && die "./authselect.spec already exist, delete it to continue." sed -E "s/@\w+@/dummy/g" rpm/authselect.spec.in > authselect.spec dnf install -y "dnf-command(builddep)" dnf builddep -y ./authselect.spec rm authselect.spec ;; ubuntu) apt update apt install -y \ asciidoc \ autoconf \ automake \ autopoint \ gcc \ gettext \ libcmocka-dev \ libpopt-dev \ libselinux1-dev \ libtool \ m4 \ make \ pkg-config \ po4a ;; *) die "Unknown release, please install dependencies manualy." ;; esac