#!/bin/sh # $FreeBSD: head/devel/llvm12/files/llvm-wrapper.sh.in 487524 2018-12-15 15:21:37Z brooks $ LLVM_PREFIX="%%LLVM_PREFIX%%" LLVM_SUFFIX="%%LLVM_SUFFIX%%" tool=$0 [ -L "$tool" ] && tool=$(/bin/realpath $tool) tool=${tool##*/} tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}" LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \ exec "${tool}" "${@}"