bin.in 375 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # Shell wrapper script for the executables when built with the shared
  3. # libtomcrypt library.
  4. set -euf
  5. rootdir="$(cd -- "${0%/*}/" && pwd -P)"
  6. binpath="$rootdir/.bin/${0##*/}"
  7. [ -z "${LD_LIBRARY_PATH:=$rootdir}" ] ||
  8. LD_LIBRARY_PATH="$rootdir:$LD_LIBRARY_PATH"
  9. export LD_LIBRARY_PATH
  10. if [ -n "${1+x}" ]; then
  11. exec "$binpath" "${@:-}"
  12. else
  13. exec "$binpath"
  14. fi