Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed small bug in makefile command
  • Loading branch information
kraih committed Feb 15, 2012
1 parent fedb4e5 commit d42e710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@ This file documents the revision history for Perl extension Mojolicious.

2.50 2012-02-15 00:00:00
- Improved documentation.
- Fixed small bug in makefile command.

2.49 2012-02-13 00:00:00
- Deprecated Mojolicious::Renderer->root in favor of
Expand Down
7 changes: 4 additions & 3 deletions lib/Mojolicious/Command/generate/makefile.pm
Expand Up @@ -9,9 +9,10 @@ has usage => "usage: $0 generate makefile\n";
# And as an environmentalist, I'm against that."
sub run {
my $self = shift;
my $class = $ENV{MOJO_APP} || 'MyApp';
my $path = $self->class_to_path($class);
my $name = $self->class_to_file($class);
my $class = $ENV{MOJO_APP};
$class = 'MyApp' if !$class || ref $class;
my $path = $self->class_to_path($class);
my $name = $self->class_to_file($class);
$self->render_to_rel_file('makefile', 'Makefile.PL', $class, $path, $name);
}

Expand Down

0 comments on commit d42e710

Please sign in to comment.