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)
(cherry picked from commit
473664aafdff1f60db99929bdd43c2a9b26d14cd)
<!--
NOTE:
- If you're asking about how to use OpenSSL, this isn't the right
+ If you're asking about how to use OpenSSL, this isn't the right
forum. Please see our User Support resources:
https://github.com/openssl/openssl/blob/master/SUPPORT.md
```
#include <stdio.h>
-
+
int main() {
int foo = 1;
printf("%d\n", foo);
NOTE:
- If you're asking about how to use OpenSSL, this isn't the right
+ If you're asking about how to use OpenSSL, this isn't the right
forum. Please see our User Support resources:
https://github.com/openssl/openssl/blob/master/SUPPORT.md
```
#include <stdio.h>
-
+
int main() {
int foo = 1;
printf("%d\n", foo);
NOTE:
- If you're asking about how to use OpenSSL, this isn't the right
+ If you're asking about how to use OpenSSL, this isn't the right
forum. Please see our User Support resources:
https://github.com/openssl/openssl/blob/master/SUPPORT.md
```
#include <stdio.h>
-
+
int main() {
int foo = 1;
printf("%d\n", foo);
# fips: set to "no" to disable building FIPS, leave unset to
# build the FIPS provider.
# tests: omit this to run all the tests using QEMU, set it to "none"
- # to never run the tests, otherwise it's value is passed to
- # the "make test" command to allow selectiving disabling of
+ # to never run the tests, otherwise its value is passed to
+ # the "make test" command to allow selective disabling of
# tests.
platform: [
{
-
# Jobs run per pull request submission
name: Run-checker CI
on: [pull_request, push]
Please see our [Thanks!][] page for the current acknowledgements.
[Thanks!]: https://www.openssl.org/community/thanks.html
-
-#! /usr/bin/perl
+#! /usr/bin/env perl
use Config;
-#! /usr/bin/perl
+#! /usr/bin/env perl
use Config;
Build the OpenSSL libraries to support the API for the specified version.
If [no-deprecated](#no-deprecated) is also given, don't build with support
for deprecated APIs in or below the specified version number. For example,
-addding
+adding
--api=1.1.0 no-deprecated
-#! /usr/bin/perl
+#! /usr/bin/env perl
BEGIN { my $prev }
($_ = $prev) =~ s|^( *)(.*)$|"$1" . '=' x length($2)|e
case "$before+$next" in
# MAKING ALPHA RELEASES ##################################
-
+
# Alpha releases can't be made from beta versions or real versions
beta*+alpha | +alpha )
echo >&2 "Invalid state for an alpha release"
$DEBUG >&2 "DEBUG[next_release_state]: END: \$RELEASE_DATE=$RELEASE_DATE"
done
}
-
perl -pi $fixup $file
done
-$VERBOSE "== Comitting updates"
+$VERBOSE "== Committing updates"
git add -u
git commit $git_quiet -m "Prepare for $release_text"
if [ -n "$reviewers" ]; then
perl -pi $fixup $file
done
- $VERBOSE "== Comitting updates"
+ $VERBOSE "== Committing updates"
git add -u
git commit $git_quiet -m "Prepare for $release_text"
if [ -n "$reviewers" ]; then
A script that just runs a program looks like this:
- #! /usr/bin/perl
+ #! /usr/bin/env perl
use OpenSSL::Test::Simple;
A script to start from could be this:
- #! /usr/bin/perl
+ #! /usr/bin/env perl
use strict;
use warnings;
-#! /usr/bin/perl
+#! /usr/bin/env perl
# Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
-#
+#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
-#! /usr/bin/perl
+#! /usr/bin/env perl
# Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
-#
+#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
-#! /usr/bin/perl
+#! /usr/bin/env perl
#
# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
#
-#! /usr/bin/perl
+#! /usr/bin/env perl
#
# Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
#
-#! /usr/bin/perl
+#! /usr/bin/env perl
#
# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
# Copyright 2017 BaishanCloud. All rights reserved.
-#! /usr/bin/perl
+#! /usr/bin/env perl
use strict;
use warnings;
-#!/usr/bin/perl
+#! /usr/bin/env perl
#
# Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
# Copyright Siemens AG 2019-2020
-#! /usr/bin/perl
+#! /usr/bin/env perl
use strict;
use warnings;
| openssl sha256 -r \
| sed -e "s| \\*stdin| $f|"
;;
- *.pl )
+ *.pl )
cat "$f" \
| $HERE/lang-compress.pl 'perl' \
| openssl sha256 -r \
| sed -e "s| \\*stdin| $f|"
;;
- *.S )
+ *.S )
cat "$f" \
| $HERE/lang-compress.pl 'S' \
| openssl sha256 -r \
-#! /usr/bin/perl
+#! /usr/bin/env perl
use strict;
use warnings;