mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 22:08:53 +08:00
Trim RHEL SPEC_FILE env
Maintain backwards compatibility with previous settings Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
20f17f775e
commit
513e6a2ee4
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Copyright (C) 2021 Intel Corporation
|
||||
# Copyright (C) 2021-2022 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -20,6 +20,9 @@ fi
|
||||
BUILD_SRPM="${BUILD_SRPM:-1}"
|
||||
BUILD_RPM="${BUILD_RPM:-1}"
|
||||
SPEC_FILE="${SPEC_FILE:-${OS_TYPE}}"
|
||||
if [[ ${SPEC_FILE} == rhel* ]]; then
|
||||
SPEC_FILE=${SPEC_FILE%.*}
|
||||
fi
|
||||
|
||||
export BUILD_ID="${BUILD_ID:-1}"
|
||||
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
|
||||
|
||||
@@ -20,6 +20,9 @@ fi
|
||||
BUILD_SRPM="${BUILD_SRPM:-1}"
|
||||
BUILD_RPM="${BUILD_RPM:-1}"
|
||||
SPEC_FILE="${SPEC_FILE:-${OS_TYPE}}"
|
||||
if [[ ${SPEC_FILE} == rhel* ]]; then
|
||||
SPEC_FILE=${SPEC_FILE%.*}
|
||||
fi
|
||||
|
||||
export BUILD_ID="${BUILD_ID:-1}"
|
||||
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
|
||||
|
||||
Reference in New Issue
Block a user