xref: /aosp_15_r20/external/openthread/third_party/mbedtls/repo/scripts/config.pl (revision cfb92d1480a9e65faed56933e9c12405f45898b4)
1#!/usr/bin/env perl
2# Backward compatibility redirection
3
4## Copyright The Mbed TLS Contributors
5## SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
6##
7
8my $py = $0;
9$py =~ s/\.pl$/.py/ or die "Unable to determine the name of the Python script";
10exec 'python3', $py, @ARGV;
11print STDERR "$0: python3: $!. Trying python instead.\n";
12exec 'python', $py, @ARGV;
13print STDERR "$0: python: $!\n";
14exit 127;
15