3
# Check the library fingerprint and generate an executable fingerprint, or
10
# deal with the case where we're run from within the build and OpenSSL is
11
# not yet installed. Also, make sure LD_LIBRARY_PATH is properly set in
12
# case shared libraries are built.
15
if test "$OSTYPE" = msdosdjgpp; then
16
PATH="$TOP/apps;$TOP;$PATH"
18
PATH="$TOP/apps:$TOP:$PATH"
20
LD_LIBRARY_PATH=$TOP; export LD_LIBRARY_PATH
22
LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
25
echo "Checking library fingerprint for $lib"
26
openssl sha1 -hmac etaonrishdlcupfm $lib | sed "s/(.*\//(/" | diff -w $lib.sha1 - || { echo "$libs fingerprint mismatch"; exit 1; }
28
[ -x $exe.exe ] && exe=$exe.exe
30
echo "Making fingerprint for $exe"
31
openssl sha1 -hmac etaonrishdlcupfm -binary $exe > $exe.$ext || rm $exe.$ext