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