cvsuser 05/04/02 03:00:05
Modified: . MANIFEST
config/auto perldoc.pl
lib/Parrot/Configure RunSteps.pm
Added: config/auto bc.pl
Log:
Check for existence of 'bc', the basic calculator, on the system.
When running tests for 'Parrot bc', I'd like to doublecheck
with the standard 'bc'.
Revision Changes Path
1.859 +1 -0 parrot/MANIFEST
Index: MANIFEST
===================================================================
RCS file: /cvs/public/parrot/MANIFEST,v
retrieving revision 1.858
retrieving revision 1.859
diff -u -r1.858 -r1.859
--- MANIFEST 2 Apr 2005 07:25:35 -0000 1.858
+++ MANIFEST 2 Apr 2005 11:00:00 -0000 1.859
@@ -140,6 +140,7 @@
config/auto/alignptrs/test_c.in []
config/auto/antlr.pl []
config/auto/antlr/test_python.g []
+config/auto/bc.pl []
config/auto/byteorder.pl []
config/auto/byteorder/test_c.in []
config/auto/cgoto.pl []
1.6 +2 -2 parrot/config/auto/perldoc.pl
Index: perldoc.pl
===================================================================
RCS file: /cvs/public/parrot/config/auto/perldoc.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- perldoc.pl 2 Apr 2005 07:25:36 -0000 1.5
+++ perldoc.pl 2 Apr 2005 11:00:03 -0000 1.6
@@ -7,7 +7,7 @@
=head1 DESCRIPTION
-Determines if perldoc exists on the system.
+Determines whether perldoc exists on the system.
=cut
1.1 parrot/config/auto/bc.pl
Index: bc.pl
===================================================================
# Copyright: 2005 The Perl Foundation. All Rights Reserved.
# $Id: bc.pl,v 1.1 2005/04/02 11:00:03 bernhard Exp $
=head1 NAME
config/auto/bc - Check whether bc works
=head1 DESCRIPTION
Determines whether bc, the basic calculator, exists on the system.
=cut
package Configure::Step;
use strict;
use vars qw($description @args);
use Parrot::Configure::Step ':auto';
$description = "Determining whether bc is installed...";
@args = qw(verbose);
sub runstep {
my $a = `bc -v`;
# This seems to work for GNU bc 1.06
my $has_bc = ($a =~ m/^bc /) ? 1 : 0;
Configure::Data->set(has_bc => $has_bc);
$Configure::Step::result = $has_bc ? 'yes' : 'no';
}
1;
1.50 +2 -1 parrot/lib/Parrot/Configure/RunSteps.pm
Index: RunSteps.pm
===================================================================
RCS file: /cvs/public/parrot/lib/Parrot/Configure/RunSteps.pm,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- RunSteps.pm 2 Apr 2005 07:25:39 -0000 1.49
+++ RunSteps.pm 2 Apr 2005 11:00:05 -0000 1.50
@@ -61,6 +61,7 @@
auto/snprintf.pl
auto/perldoc.pl
auto/antlr.pl
+ auto/bc.pl
gen/icu.pl
gen/config_h.pl
gen/core_pmcs.pl