1#!/bin/sh 2# 3# Copyright (c) 2005-2020 Intel Corporation 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16 17# Script used to generate version info string 18echo "#define __TBB_VERSION_STRINGS(N) \\" 19echo '#N": BUILD_HOST'"\t\t"`hostname -s`" ("`arch`")"'" ENDL \' 20echo '#N": BUILD_OS'"\t\t"`sw_vers -productName`" version "`sw_vers -productVersion`'" ENDL \' 21echo '#N": BUILD_KERNEL'"\t"`uname -v`'" ENDL \' 22echo '#N": BUILD_CLANG'"\t"`clang --version | sed -n "1p"`'" ENDL \' 23echo '#N": BUILD_XCODE'"\t"`xcodebuild -version </dev/null 2>&1 | grep 'Xcode'`'" ENDL \' 24[ -z "$COMPILER_VERSION" ] || echo '#N": BUILD_COMPILER'"\t"$COMPILER_VERSION'" ENDL \' 25echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \' 26echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \' 27echo "" 28echo "#define __TBB_DATETIME \""`date -u`"\"" 29