mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
473664aafd
Different tests may use unexpectedly different versions of perl, depending on whether they hardcode the path to the perl executable or if they resolve the path from the environment. This fixes it so that the same perl is always used. Fix some trailing whitespace and spelling mistakes as well. CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16362)
32 lines
981 B
Bash
Executable File
32 lines
981 B
Bash
Executable File
#! /bin/sh
|
|
|
|
HERE=`dirname $0`
|
|
|
|
for f in "$@"; do
|
|
# It's worth nothing that 'openssl sha256 -r' assumes that all input
|
|
# is binary. This isn't quite true, and we know better, so we convert
|
|
# the '*stdin' marker to the filename preceded by a space. See the
|
|
# sha1sum manual for a specification of the format.
|
|
case "$f" in
|
|
*.c | *.c.in | *.h | *.h.in | *.inc)
|
|
cat "$f" \
|
|
| $HERE/lang-compress.pl 'C' \
|
|
| unifdef -DFIPS_MODULE=1 \
|
|
| openssl sha256 -r \
|
|
| sed -e "s| \\*stdin| $f|"
|
|
;;
|
|
*.pl )
|
|
cat "$f" \
|
|
| $HERE/lang-compress.pl 'perl' \
|
|
| openssl sha256 -r \
|
|
| sed -e "s| \\*stdin| $f|"
|
|
;;
|
|
*.S )
|
|
cat "$f" \
|
|
| $HERE/lang-compress.pl 'S' \
|
|
| openssl sha256 -r \
|
|
| sed -e "s| \\*stdin| $f|"
|
|
;;
|
|
esac
|
|
done
|