#!/bin/sh
# $FreeBSD: head/devel/llvm36/files/llvm-wrapper.sh.in 320713 2013-06-12 18:37:03Z brooks $

LLVM_PREFIX="/usr/local/llvm36"
LLVM_SUFFIX="36"

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