1 ################################################################################
3 # apicheck_c.PL -- generate apicheck.c
5 ################################################################################
9 # $Date: 2010/03/07 13:15:41 +0100 $
11 ################################################################################
13 # Version 3.x, Copyright (C) 2004-2010, Marcus Holland-Moritz.
14 # Version 2.x, Copyright (C) 2001, Paul Marquess.
15 # Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
17 # This program is free software; you can redistribute it and/or
18 # modify it under the same terms as Perl itself.
20 ################################################################################
24 my $out = 'apicheck.c';
25 my @api = map { /^--api=(\w+)$/ ? ($1) : () } @ARGV;
26 print "creating $out", (@api ? " (@api)" : ''), "\n";
27 system $^X, 'parts/apicheck.pl', @api, $out
28 and die "couldn't create $out\n";