This allows the release-aux directory to be found, even when a symbolic
link to this script is used.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/tools/pull/140)
# Setup ##############################################################
# Check that we have the scripts that define functions we use
-RELEASE_AUX=$(cd $(dirname $0)/release-aux; pwd)
+RELEASE_AUX=$(dirname $(realpath $(type -p $0)))/release-aux
found=true
for fn in "$RELEASE_AUX/release-version-fn.sh" \
"$RELEASE_AUX/release-state-fn.sh" \