xref: /aosp_15_r20/external/mbedtls/scripts/config.pl (revision 62c56f9862f102b96d72393aff6076c951fb8148)
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