Files
compute-runtime/scripts/packaging/functions.sh
Artur Harasimiuk 878d646772 packaging refactor
- update versioning for RPM
- make .spec files more verbose

Print information about CCACHE_BASEDIR from environment.

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-09-23 14:30:28 +02:00

21 lines
453 B
Bash
Executable File

#!/bin/bash
#
# Copyright (C) 2021-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
set -ex
get_api_version() {
API_VERSION="${API_VERSION:-}"
API_VERSION_SRC="${API_VERSION_SRC:-}"
API_DEB_MODEL_LINK=""
API_RPM_MODEL_LINK="1"
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
}