dep-libtomcrypt/bin.in
2025-09-04 20:59:48 +02:00

19 lines
375 B
Bash

#!/bin/sh
# Shell wrapper script for the executables when built with the shared
# libtomcrypt library.
set -euf
rootdir="$(cd -- "${0%/*}/" && pwd -P)"
binpath="$rootdir/.bin/${0##*/}"
[ -z "${LD_LIBRARY_PATH:=$rootdir}" ] ||
LD_LIBRARY_PATH="$rootdir:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
if [ -n "${1+x}" ]; then
exec "$binpath" "${@:-}"
else
exec "$binpath"
fi