/[cvs]/nfo/perl/libs/Data/Rap/Engine.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Rap/Engine.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by joko, Fri Feb 21 01:46:17 2003 UTC revision 1.4 by joko, Sat Feb 22 16:51:21 2003 UTC
# Line 2  Line 2 
2  ##  $Id$  ##  $Id$
3  ## ----------------------------------------------------------------------  ## ----------------------------------------------------------------------
4  ##  $Log$  ##  $Log$
5    ##  Revision 1.4  2003/02/22 16:51:21  joko
6    ##  + enhanced run_executable
7    ##  modified logging output
8    ##
9  ##  Revision 1.3  2003/02/21 01:46:17  joko  ##  Revision 1.3  2003/02/21 01:46:17  joko
10  ##  renamed core function  ##  renamed core function
11  ##  ##
# Line 41  sub perform_target { Line 45  sub perform_target {
45    my $self = shift;    my $self = shift;
46    my $targetname = shift;    my $targetname = shift;
47    
48    $self->log("Performing Target '$targetname'.", 'notice');    my $header = ("- " x 12) . "   " . $targetname . "   " . ("- " x 6);
49      
50      #$self->log("- " x 35, 'notice');
51      #$self->log("Performing Target '$targetname'.", 'notice');
52    
53      $self->log($header, 'notice');
54    
55    #exit;    #exit;
56    
# Line 102  sub perform_command { Line 111  sub perform_command {
111    my $command = shift;    my $command = shift;
112    
113    if (!$command) {    if (!$command) {
114      $self->log("Command was empty!", 'warning');      $self->log("Command was empty!", 'debug');
115      return;      return;
116    }    }
117    
# Line 290  sub run_executable { Line 299  sub run_executable {
299      my @buf;      my @buf;
300      foreach (keys %$opts) {      foreach (keys %$opts) {
301        my $value = $opts->{$_};        my $value = $opts->{$_};
302          if (m/^_/) {
303            if ($_ eq '_switches') {
304              my @switches = split(/,\s|,/, $value);
305              foreach my $switch (@switches) {
306                push @buf, '--' . $switch;
307              }
308            }
309            next;
310          }
311          
312        if ($value =~ /\s/) {        if ($value =~ /\s/) {
313          $value = "\"$value\"";          $value = "\"$value\"";
314        }        }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed