opensslwrap.sh revision 160814
1178825Sdfr#!/bin/sh 2233294Sstas 3233294SstasHERE="`echo $0 | sed -e 's|[^/]*$||'`" 4233294SstasOPENSSL="${HERE}../apps/openssl" 5178825Sdfr 6233294Sstasif [ -x "${OPENSSL}.exe" ]; then 7233294Sstas # The original reason for this script existence is to work around 8233294Sstas # certain caveats in run-time linker behaviour. On Windows platforms 9178825Sdfr # adjusting $PATH used to be sufficient, but with introduction of 10233294Sstas # SafeDllSearchMode in XP/2003 the only way to get it right in 11233294Sstas # *all* possible situations is to copy newly built .DLLs to apps/ 12178825Sdfr # and test/, which is now done elsewhere... The $PATH is adjusted 13233294Sstas # for backward compatibility (and nostagical reasons:-). 14233294Sstas if [ "$OSTYPE" != msdosdjgpp ]; then 15233294Sstas PATH="${HERE}..:$PATH"; export PATH 16178825Sdfr fi 17233294Sstas exec "${OPENSSL}.exe" "$@" 18233294Sstaselif [ -x "${OPENSSL}" -a -x "${HERE}shlib_wrap.sh" ]; then 19233294Sstas exec "${HERE}shlib_wrap.sh" "${OPENSSL}" "$@" 20178825Sdfrelse 21233294Sstas exec "${OPENSSL}" "$@" # hope for the best... 22233294Sstasfi 23233294Sstas