Skip to content

Commit

Permalink
Fixed so that the @inc setting stuff actually works.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Cross committed Sep 3, 2012
1 parent 8fe5475 commit 5d584f9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/mt-simple-rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

use strict;
use Getopt::Long;

my $basedir;
BEGIN {

my $result = GetOptions("basedir=s" => \$basedir);
if (! $basedir) {
die "usage: mt-simple-rebuild --basedir=/path/to/MT\n";
}

my $result = GetOptions("basedir=s" => \$basedir);
if (! $basedir) {
die "usage: mt-simple-rebuild --basedir=/path/to/MT\n";
$basedir .= '/' unless $basedir =~ m|/$|;
}

use constant MT_DIR => $basedir;
Expand Down

0 comments on commit 5d584f9

Please sign in to comment.