2 eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
3 & eval 'exec perl -w -S $0 $argv:q'
6 # ******************************************************************
9 # ******************************************************************
11 # ******************************************************************
13 # ******************************************************************
22 my($basePath) = (defined $FindBin::RealBin ?
$FindBin::RealBin
:
23 File
::Spec
->rel2abs(dirname
($0)));
25 $basePath = File
::Spec
->rel2abs(dirname
($0)) if ($basePath eq '');
26 $basePath = VMS
::Filespec
::unixify
($basePath);
28 $basePath .= '/MakeProjectCreator';
30 my($mpcroot) = $ENV{MPC_ROOT
};
31 my($mpcpath) = (defined $mpcroot ?
$mpcroot :
32 dirname
(dirname
($basePath)) . '/MPC');
33 unshift(@INC, $mpcpath . '/modules');
35 if (defined $mpcroot) {
36 print STDERR
"MPC_ROOT was set to $mpcroot.\n";
39 if (! -d
"$mpcpath/modules") {
40 print STDERR
"ERROR: Unable to find the MPC modules in $mpcpath.\n";
41 if (defined $mpcroot) {
42 print STDERR
"Your MPC_ROOT environment variable does not point to a ",
43 "valid MPC location.\n";
46 print STDERR
"You can set the MPC_ROOT environment variable to the ",
54 # ************************************************************
56 # ************************************************************
62 # ************************************************************
64 # ************************************************************
66 my($driver) = new Driver
($basePath, Driver
::projects
());
67 exit($driver->run(@ARGV));