This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Backport rsync_locale, switch_to_global_locale
[perl5.git] / dist / Devel-PPPort / apicheck_c.PL
1 ################################################################################
2 #
3 #  apicheck_c.PL -- generate apicheck.c by running parts/apicheck.pl
4 #
5 ################################################################################
6 #
7 #  Version 3.x, Copyright (C) 2004-2013, Marcus Holland-Moritz.
8 #  Version 2.x, Copyright (C) 2001, Paul Marquess.
9 #  Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
10 #
11 #  This program is free software; you can redistribute it and/or
12 #  modify it under the same terms as Perl itself.
13 #
14 ################################################################################
15
16 use strict;
17
18 my $out = 'apicheck.c';
19 my @api = map { /^--api=(\w+)$/ ? ($1) : () } @ARGV;
20 print "creating $out", (@api ? " (@api)" : ''), "\n";
21 system $^X, 'parts/apicheck.pl', @api, $out
22     and die "couldn't create $out\n";