/
githubmirror
/
authselect
Обзор
Документация
Войти
/
githubmirror
/
authselect
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/auto
47 строк
744 B
Pavel Březina
scripts: add ci automation scripts
24 сен 2021, 19:00
24 сен 2021, 19:00
33c1e95
Код
Авторство
О чём код?
#!/bin/bash set -e cliname=`basename "$0"` cmdname=$1 scriptdir=`realpath \`dirname "$0"\`` srcdir=`realpath "$scriptdir/.."` [ $# -gt 0 ] && shift cli_help() { echo " Authselect Automation Scripts Usage: $cliname [command] Commands: install-build-deps Install build dependencies. make-srpm Make source RPM. * Help " exit 1 } # helper functions die() { echo "$*" 1>&2 ; exit 1; } # push to authselect root directory pushd "$scriptdir/.." &> /dev/null case "$cmdname" in install-build-deps) . "$scriptdir/commands/install-build-deps.sh" "$@" ;; make-srpm) . "$scriptdir/commands/make-srpm.sh" "$@" ;; *) cli_help ;; esac popd