Files
compute-runtime/scripts/packaging/functions.sh
Pawel Cieslak 02017c6aba OSV-style builds
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-08-11 11:12:07 +02:00

21 lines
419 B
Bash
Executable File

#!/bin/bash
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
set -ex
get_api_version() {
API_VERSION="0"
API_VERSION_SRC="master"
API_DEB_MODEL_LINK=""
API_RPM_MODEL_LINK=""
if [ "${COMPONENT_MODEL}" != "ci" ]; then
API_DEB_MODEL_LINK="~${COMPONENT_MODEL:-unknown}${BUILD_ID:-0}"
API_RPM_MODEL_LINK=".${COMPONENT_MODEL:-unknown}${BUILD_ID:-0}"
fi
}