2 ################################################################################
4 # mktodo -- generate baseline and todo files by running mktodo.pl
6 ################################################################################
10 # $Date: 2006/01/14 23:02:12 +0100 $
12 ################################################################################
14 # Version 3.x, Copyright (C) 2004-2006, Marcus Holland-Moritz.
15 # Version 2.x, Copyright (C) 2001, Paul Marquess.
16 # Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
18 # This program is free software; you can redistribute it and/or
19 # modify it under the same terms as Perl itself.
21 ################################################################################
34 # my $outdir = $opt{base} ? 'parts/base' : 'parts/todo';
35 my $outdir = 'parts/todo';
37 # for (glob "$outdir/*") {
38 # unlink or die "$_: $!\n";
41 my $install = '/tmp/perl/install/default';
42 # my $install = '/tmp/perl/install/thread';
44 my @perls = sort { $b->{version} <=> $a->{version} }
45 map { { version => `$_ -e 'printf "%.6f", \$]'`, path => $_ } }
46 ('bleadperl', glob "$install/*/bin/perl5.*");
49 $perls[$_]{todo} = $perls[$_-1]{version};
54 $ENV{SKIP_PPPHTEST} = 1;
57 my $todo = do { my $v = $_->{todo}; $v =~ s/\D+//g; $v };
58 -e "$outdir/$todo" and next;
59 my @args = ('--perl', $_->{path}, '--todo', "$outdir/$todo", '--version', "$_->{todo}");
60 push @args, '--base' if $opt{base};
61 system 'devel/mktodo.pl', @args and die "system(@args): [$!] [$?]\n";