#!/bin/sh
# $FreeBSD: head/devel/llvm-devel/files/llvm-wrapper.sh.in 332935 2013-11-06 00:13:02Z brooks $

LLVM_PREFIX="/usr/local/llvm-devel"
LLVM_SUFFIX="-devel"

tool=$(basename $0)
tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}"
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \
    "${tool}" "${@}"
