|
Revision 1031, 0.7 kB
(checked in by gboggs, 2 years ago)
|
Updated copyright year. BugId: 46370
|
- Property svn:executable set to
*
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
#!/usr/bin/perl -w |
|---|
| 2 |
|
|---|
| 3 |
# Copyright 2001-2007 Six Apart. This code cannot be redistributed without |
|---|
| 4 |
# permission from www.movabletype.org. |
|---|
| 5 |
# |
|---|
| 6 |
# $Id$ |
|---|
| 7 |
|
|---|
| 8 |
use strict; |
|---|
| 9 |
|
|---|
| 10 |
my($MT_DIR); |
|---|
| 11 |
BEGIN { |
|---|
| 12 |
if ($0 =~ m!(.*[/\\])!) { |
|---|
| 13 |
$MT_DIR = $1; |
|---|
| 14 |
} else { |
|---|
| 15 |
$MT_DIR = './'; |
|---|
| 16 |
} |
|---|
| 17 |
unshift @INC, $MT_DIR . 'lib'; |
|---|
| 18 |
unshift @INC, $MT_DIR . 'extlib'; |
|---|
| 19 |
} |
|---|
| 20 |
|
|---|
| 21 |
local $| = 1; |
|---|
| 22 |
|
|---|
| 23 |
eval { |
|---|
| 24 |
require MT::App::Wizard; |
|---|
| 25 |
my $app = MT::App::Wizard->new(Directory => $MT_DIR) |
|---|
| 26 |
or die MT->errstr; |
|---|
| 27 |
$app->{warning_trace} = 0; |
|---|
| 28 |
local $SIG{__WARN__} = sub { $app->trace($_[0]) }; |
|---|
| 29 |
$app->run; |
|---|
| 30 |
}; |
|---|
| 31 |
|
|---|
| 32 |
if ($@) { |
|---|
| 33 |
print "Content-Type: text/html\n\n"; |
|---|
| 34 |
print "Got an error: $@"; |
|---|
| 35 |
} |
|---|