blob: 5dd89d225dd868b1fdbda10055bbdf9d741fff8b [file] [log] [blame]
fbrosson533407a2018-04-04 21:44:29 +00001#!/usr/bin/env perl
Gilles Peskinebf359c72019-07-27 23:56:04 +02002# Backward compatibility redirection
Gilles Peskine0409bcd2019-09-13 15:14:42 +02003
Bence Szépkúti1e148272020-08-07 13:07:28 +02004## Copyright The Mbed TLS Contributors
Gilles Peskine0409bcd2019-09-13 15:14:42 +02005## SPDX-License-Identifier: Apache-2.0
6##
7## Licensed under the Apache License, Version 2.0 (the "License"); you may
8## not use this file except in compliance with the License.
9## You may obtain a copy of the License at
10##
11## http://www.apache.org/licenses/LICENSE-2.0
12##
13## Unless required by applicable law or agreed to in writing, software
14## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16## See the License for the specific language governing permissions and
17## limitations under the License.
Gilles Peskine0409bcd2019-09-13 15:14:42 +020018
Gilles Peskinebf359c72019-07-27 23:56:04 +020019my $py = $0;
Gilles Peskinedf78e492019-11-26 13:30:00 +010020$py =~ s/\.pl$/.py/ or die "Unable to determine the name of the Python script";
Gilles Peskine6cf31272019-07-29 23:42:50 +020021exec 'python3', $py, @ARGV;
Gilles Peskine987e2712019-11-26 13:30:16 +010022print STDERR "$0: python3: $!. Trying python instead.\n";
Gilles Peskinea103c182019-09-05 20:29:22 +020023exec 'python', $py, @ARGV;
24print STDERR "$0: python: $!\n";
Gilles Peskine6cf31272019-07-29 23:42:50 +020025exit 127;