diff options
author | Rob Austein <sra@hactrn.net> | 2006-06-20 17:33:26 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2006-06-20 17:33:26 +0000 |
commit | 52261db09ef9dbf5abc95baed22722c5c332f9f7 (patch) | |
tree | 05a8dc819a8d84717dfbffc287f45e6b19002984 /openssl/trunk/util/opensslwrap.sh | |
parent | 8b319903618337c8bc643eb16454f59fabd2f28b (diff) |
Pulling OpenSSL 0.9.8b into trunk
svn path=/openssl/trunk; revision=3
Diffstat (limited to 'openssl/trunk/util/opensslwrap.sh')
-rwxr-xr-x | openssl/trunk/util/opensslwrap.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/openssl/trunk/util/opensslwrap.sh b/openssl/trunk/util/opensslwrap.sh new file mode 100755 index 00000000..91d29e2b --- /dev/null +++ b/openssl/trunk/util/opensslwrap.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +HERE="`echo $0 | sed -e 's|[^/]*$||'`" +OPENSSL="${HERE}../apps/openssl" + +if [ -x "${OPENSSL}.exe" ]; then + # The original reason for this script existence is to work around + # certain caveats in run-time linker behaviour. On Windows platforms + # adjusting $PATH used to be sufficient, but with introduction of + # SafeDllSearchMode in XP/2003 the only way to get it right in + # *all* possible situations is to copy newly built .DLLs to apps/ + # and test/, which is now done elsewhere... The $PATH is adjusted + # for backward compatibility (and nostagical reasons:-). + if [ "$OSTYPE" != msdosdjgpp ]; then + PATH="${HERE}..:$PATH"; export PATH + fi + exec "${OPENSSL}.exe" "$@" +elif [ -x "${OPENSSL}" -a -x "${HERE}shlib_wrap.sh" ]; then + exec "${HERE}shlib_wrap.sh" "${OPENSSL}" "$@" +else + exec "${OPENSSL}" "$@" # hope for the best... +fi |