ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildSystem/MakeInterface.pm
(Generate patch)

Comparing COMP/SCRAM/src/BuildSystem/MakeInterface.pm (file contents):
Revision 1.3 by sashby, Fri May 13 15:48:29 2005 UTC vs.
Revision 1.6 by muzaffar, Thu Jan 3 13:35:14 2008 UTC

# Line 49 | Line 49 | sub new()
49       (
50        "make"        => sub { }, # dummy so we can use help opt just for MakeInterface
51        "s"           => sub { $self->{CMDOPTS}.=" -s" },
52 <      "j=s"         => sub { $self->{CMDOPTS}.=" -j ".$_[1] },
52 >      "j=i"         => sub { $self->{CMDOPTS}.=" -j ".$_[1] },
53        "d"           => sub { $self->{CMDOPTS}.=" -d" },
54        "k"           => sub { $self->{CMDOPTS}.=" -k" },
55        "printdir"    => sub { $self->{CMDOPTS}.=" -w" },
# Line 57 | Line 57 | sub new()
57        "printdb"     => sub { $self->{CMDOPTS}.=" -p" }
58        );
59    
60 <  Getopt::Long::config qw(default no_ignore_case require_order);
60 >  Getopt::Long::config qw(default no_ignore_case require_order bundling);
61    
62    if (! Getopt::Long::GetOptions(\%opts, %options))
63       {
64       print "SCRAM Warning: Ignoring unknown option.","\n";
65 +     exit(1);
66       }
67    
68    return $self;
# Line 74 | Line 75 | sub exec()
75     my $PID;
76     my $makecmd=$self->{GMAKECMD}.$self->{CMDOPTS}." -f ".$makefile." ".join(" ",@ARGV);
77    
78 <   print "SCRAM MakeInterface::exec(): going to exec \"",$makecmd,"\"\n",if ($ENV{SCRAM_DEBUG});
78 <
78 >   print "SCRAM: Starting ",$self->{GMAKECMD}," ....\n";
79     # Try without forking:
80     exec "$makecmd" || die "SCRAM MakeInterface::exec(): Unable to exec()...$!","\n";
81     }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines