From 533407a266e4a63b7fd4721851dcf1773baf23b2 Mon Sep 17 00:00:00 2001 From: fbrosson Date: Wed, 4 Apr 2018 21:44:29 +0000 Subject: [PATCH] Use "#!/usr/bin/env perl" as shebang line. --- ChangeLog | 2 ++ scripts/config.pl | 2 +- scripts/generate_errors.pl | 2 +- scripts/generate_features.pl | 2 +- scripts/generate_visualc_files.pl | 2 +- scripts/massif_max.pl | 2 +- scripts/rename.pl | 2 +- tests/scripts/check-doxy-blocks.pl | 2 +- tests/scripts/curves.pl | 2 +- tests/scripts/depends-hashes.pl | 2 +- tests/scripts/depends-pkalgs.pl | 2 +- tests/scripts/gen_ctr_drbg.pl | 2 +- tests/scripts/gen_gcm_decrypt.pl | 2 +- tests/scripts/gen_gcm_encrypt.pl | 2 +- tests/scripts/gen_pkcs1_v21_sign_verify.pl | 2 +- tests/scripts/key-exchanges.pl | 2 +- tests/scripts/list-enum-consts.pl | 2 +- tests/scripts/recursion.pl | 2 +- tests/scripts/run-test-suites.pl | 2 +- tests/scripts/test-ref-configs.pl | 2 +- 20 files changed, 21 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9ee82c685..bed6c9cd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -93,6 +93,8 @@ Changes * Improve robustness of mbedtls_ssl_derive_keys against the use of HMAC functions with non-HMAC ciphersuites. Independently contributed by Jiayuan Chen in #1377. Fixes #1437. + * Change the shebang line in Perl scripts to look up perl in the PATH. + Contributed by fbrosson. = mbed TLS 2.8.0 branch released 2018-03-16 diff --git a/scripts/config.pl b/scripts/config.pl index 5bf27859a..468aeb93e 100755 --- a/scripts/config.pl +++ b/scripts/config.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # This file is part of mbed TLS (https://tls.mbed.org) # diff --git a/scripts/generate_errors.pl b/scripts/generate_errors.pl index ac0fbff05..4f0ad31f1 100755 --- a/scripts/generate_errors.pl +++ b/scripts/generate_errors.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Generate error.c # diff --git a/scripts/generate_features.pl b/scripts/generate_features.pl index 2aa695c54..1bd82ca2a 100755 --- a/scripts/generate_features.pl +++ b/scripts/generate_features.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # use strict; diff --git a/scripts/generate_visualc_files.pl b/scripts/generate_visualc_files.pl index 8d36653b4..5e3b9b582 100755 --- a/scripts/generate_visualc_files.pl +++ b/scripts/generate_visualc_files.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Generate files for MS Visual Studio: # - for VS6: main project (library) file, individual app files, workspace diff --git a/scripts/massif_max.pl b/scripts/massif_max.pl index d1ce4ca7d..4e3342a2c 100755 --- a/scripts/massif_max.pl +++ b/scripts/massif_max.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Parse a massif.out.xxx file and output peak total memory usage diff --git a/scripts/rename.pl b/scripts/rename.pl index c29519eef..fb428098c 100755 --- a/scripts/rename.pl +++ b/scripts/rename.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # This file is part of mbed TLS (https://tls.mbed.org) # diff --git a/tests/scripts/check-doxy-blocks.pl b/tests/scripts/check-doxy-blocks.pl index b0fd69635..496769992 100755 --- a/tests/scripts/check-doxy-blocks.pl +++ b/tests/scripts/check-doxy-blocks.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Detect comment blocks that are likely meant to be doxygen blocks but aren't. # diff --git a/tests/scripts/curves.pl b/tests/scripts/curves.pl index 004181432..ddc90c580 100755 --- a/tests/scripts/curves.pl +++ b/tests/scripts/curves.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # curves.pl # diff --git a/tests/scripts/depends-hashes.pl b/tests/scripts/depends-hashes.pl index 29dcfb00c..f57e7ed88 100755 --- a/tests/scripts/depends-hashes.pl +++ b/tests/scripts/depends-hashes.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # depends-hashes.pl # diff --git a/tests/scripts/depends-pkalgs.pl b/tests/scripts/depends-pkalgs.pl index 14c92b221..97a43e881 100755 --- a/tests/scripts/depends-pkalgs.pl +++ b/tests/scripts/depends-pkalgs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # depends-pkalgs.pl # diff --git a/tests/scripts/gen_ctr_drbg.pl b/tests/scripts/gen_ctr_drbg.pl index 66d9b3ab0..08ca5dfa2 100755 --- a/tests/scripts/gen_ctr_drbg.pl +++ b/tests/scripts/gen_ctr_drbg.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # Based on NIST CTR_DRBG.rsp validation file # Only uses AES-256-CTR cases that use a Derivation function diff --git a/tests/scripts/gen_gcm_decrypt.pl b/tests/scripts/gen_gcm_decrypt.pl index 6decac286..03809cb94 100755 --- a/tests/scripts/gen_gcm_decrypt.pl +++ b/tests/scripts/gen_gcm_decrypt.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # Based on NIST gcmDecryptxxx.rsp validation files # Only first 3 of every set used for compile time saving diff --git a/tests/scripts/gen_gcm_encrypt.pl b/tests/scripts/gen_gcm_encrypt.pl index 8adbbcefc..29ec677da 100755 --- a/tests/scripts/gen_gcm_encrypt.pl +++ b/tests/scripts/gen_gcm_encrypt.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # Based on NIST gcmEncryptIntIVxxx.rsp validation files # Only first 3 of every set used for compile time saving diff --git a/tests/scripts/gen_pkcs1_v21_sign_verify.pl b/tests/scripts/gen_pkcs1_v21_sign_verify.pl index 0d7fc7d1e..95c52358a 100755 --- a/tests/scripts/gen_pkcs1_v21_sign_verify.pl +++ b/tests/scripts/gen_pkcs1_v21_sign_verify.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # use strict; diff --git a/tests/scripts/key-exchanges.pl b/tests/scripts/key-exchanges.pl index d167c67c7..3bf7ae34f 100755 --- a/tests/scripts/key-exchanges.pl +++ b/tests/scripts/key-exchanges.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # key-exchanges.pl # diff --git a/tests/scripts/list-enum-consts.pl b/tests/scripts/list-enum-consts.pl index 633e3fdf9..21c25b33e 100755 --- a/tests/scripts/list-enum-consts.pl +++ b/tests/scripts/list-enum-consts.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use warnings; use strict; diff --git a/tests/scripts/recursion.pl b/tests/scripts/recursion.pl index 3ad42b1f8..431e59211 100755 --- a/tests/scripts/recursion.pl +++ b/tests/scripts/recursion.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Find functions making recursive calls to themselves. # (Multiple recursion where a() calls b() which calls a() not covered.) diff --git a/tests/scripts/run-test-suites.pl b/tests/scripts/run-test-suites.pl index 7e2974bbc..627935888 100755 --- a/tests/scripts/run-test-suites.pl +++ b/tests/scripts/run-test-suites.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # run-test-suites.pl # diff --git a/tests/scripts/test-ref-configs.pl b/tests/scripts/test-ref-configs.pl index b07329cac..80d5f3875 100755 --- a/tests/scripts/test-ref-configs.pl +++ b/tests/scripts/test-ref-configs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # test-ref-configs.pl #