| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Check the OpenSSL DLL link. |
| 4 | |
| 5 | link="Win32OpenSSL_Light" |
| 6 | urlfile=Webpage/openssl-url.txt |
| 7 | |
| 8 | # Check that we are in the right place. |
| 9 | if [ ! -f $urlfile ] |
| 10 | then echo >&2 "Must run from top of tree." |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
| 14 | # Get the URL. |
| 15 | . $urlfile |
| 16 | |
| 17 | # Set up the temp file. |
| 18 | tf=/tmp/ch.$$ |
| 19 | rm -f $tf |
| 20 | rc=0 |
| 21 | |
| 22 | # See if it's accessible. |
| 23 | if wget $URL32 -O /dev/null >$tf 2>&1 |
| 24 | then echo "The link is still good." |
| 25 | else echo "*** FAILURE ***" |
| 26 | cat $tf |
| 27 | rc=1 |
| 28 | fi |
| 29 | |
| 30 | rm -f $tf |
| 31 | exit $rc |