Megatest

mk_wrapper at [f1c76a256f]
Login

File utils/mk_wrapper artifact 8168084a10 part of check-in f1c76a256f


#!/bin/bash

prefix=$1
cmd=$2

echo "#!/bin/bash"
if [ "$LD_LIBRARY_PATH" != "" ];then
  echo "INFO: Using LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >&2
  echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
else
  echo "INFO: LD_LIBRARY_PATH not set" >&2
fi

fullcmd="exec $prefix/bin/$cmd"

echo "$fullcmd \"\$@\""