ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/bin/aemp
(Generate patch)

Comparing AnyEvent-MP/bin/aemp (file contents):
Revision 1.13 by root, Fri Aug 14 03:27:59 2009 UTC vs.
Revision 1.14 by root, Fri Aug 14 14:01:05 2009 UTC

298 @ARGV >= 2 298 @ARGV >= 2
299 or die "profile name or subcommand are missing\n"; 299 or die "profile name or subcommand are missing\n";
300 my $name = shift @ARGV; 300 my $name = shift @ARGV;
301 301
302 $profile = $cfg->{profile}{$name} ||= {}; 302 $profile = $cfg->{profile}{$name} ||= {};
303 ++$cfg->{dirty};
303 304
304 docmd; 305 docmd;
305 }, 306 },
306 delprofile => sub { 307 delprofile => sub {
307 @ARGV >= 1 308 @ARGV >= 1
308 or die "profile name is missing\n"; 309 or die "profile name is missing\n";
309 my $name = shift @ARGV; 310 my $name = shift @ARGV;
310 311
311 delete $cfg->{profile}{$name}; 312 delete $cfg->{profile}{$name};
313 ++$cfg->{dirty};
312 }, 314 },
313); 315);
314 316
315sub docmd { 317sub docmd {
316 my $cmd = shift @ARGV; 318 my $cmd = shift @ARGV;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines