X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=tools%2Fc_rehash;h=60c28595bd026f2a5f84d986fa1ca7dbbfc9dfcb;hp=99ab7ebaa18777d81cea29d7034382dad2712067;hb=ce72df1c6a03a2b98f5da00b534192da279609e0;hpb=dfeab0689f69c0b4bd3480ffd37a9cacc2f17d9c 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