/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v6.0.2
packaging/binary_name.sh
22 строки
571 B
Miles Steele
mobile builds get 'prelease production' tags (#16578)
18 мар 2019, 19:31
Не верифицирован
18 мар 2019, 19:31
6469f8a
Код
Авторство
О чём код?
#! /usr/bin/env bash # Prints out the binary name ("keybase", "kbstage", or "kbdev") that # corresponds to the current build mode. This script helps us avoid duplicating # the same switch statement in all of our packaging scripts. set -e -u -o pipefail here="$(dirname "$BASH_SOURCE")" mode="$("$here/build_mode.sh" "$@")" if [ "$mode" = "production" -o "$mode" = "prerelease" ] ; then echo keybase elif [ "$mode" = "staging" ] ; then echo kbstage elif [ "$mode" = "devel" ] ; then echo kbdev else echo ERROR could not determine package name >&2 exit 1 fi