From 13e91dd365887c7ff26dc3ff18d42266e5393f2d Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Tue, 22 Dec 1998 15:59:57 +0000 Subject: Incorporation of RSEs assembled patches --- tools/c_rehash | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools/c_rehash') diff --git a/tools/c_rehash b/tools/c_rehash index 99ab7ebaa1..60c28595bd 100644 --- a/tools/c_rehash +++ b/tools/c_rehash @@ -11,6 +11,20 @@ fi DIR=/usr/local/ssl PATH=$DIR/bin:$PATH +if [ ! -f "$SSLEAY" ]; then + found=0 + for dir in . `echo $PATH | sed -e 's/:/ /g'`; do + if [ -f "$dir/$SSLEAY" ]; then + found=1 + break + fi + done + if [ $found = 0 ]; then + echo "c_rehash: rehashing skipped ('ssleay' program still not available)" 1>&2 + exit 0 + fi +fi + SSL_DIR=$DIR/certs if [ "$*" = "" ]; then -- cgit v1.2.3