summaryrefslogtreecommitdiff
path: root/ACE/bin/mpc.pl
diff options
context:
space:
mode:
authorelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-12-11 15:24:38 +0000
committerelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-12-11 15:24:38 +0000
commit35a060068c756e37b2a3061ae201688ddcaf78c2 (patch)
tree338d1ead44eee096d128ca456f314a78c4e81b08 /ACE/bin/mpc.pl
parent0ecf4d2a80379fcab5dd4d50174c0648ecee7111 (diff)
downloadATCD-35a060068c756e37b2a3061ae201688ddcaf78c2.tar.gz
ChangeLogTag: Mon Dec 11 15:23:08 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'ACE/bin/mpc.pl')
-rwxr-xr-xACE/bin/mpc.pl29
1 files changed, 3 insertions, 26 deletions
diff --git a/ACE/bin/mpc.pl b/ACE/bin/mpc.pl
index c9a7e37d796..c547851e21d 100755
--- a/ACE/bin/mpc.pl
+++ b/ACE/bin/mpc.pl
@@ -15,7 +15,6 @@ eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
require 5.006;
use strict;
-use Config;
use FindBin;
use File::Spec;
use File::Basename;
@@ -26,7 +25,6 @@ if ($^O eq 'VMS') {
$basePath = VMS::Filespec::unixify($basePath);
}
$basePath .= '/MakeProjectCreator';
-unshift(@INC, $basePath . '/modules');
my($mpcroot) = $ENV{MPC_ROOT};
my($mpcpath) = (defined $mpcroot ? $mpcroot :
@@ -50,15 +48,7 @@ if (! -d "$mpcpath/modules") {
exit(255);
}
-require MPC;
-
-# ************************************************************
-# Data Section
-# ************************************************************
-
-my(@creators) = ('GNUACEProjectCreator',
- 'BorlandProjectCreator',
- );
+require Driver;
# ************************************************************
# Subroutine Section
@@ -72,18 +62,5 @@ sub getBasePath {
# Main Section
# ************************************************************
-## Allocate a driver
-my($driver) = new MPC();
-
-## Add our creators to the front of the list
-my($creators) = $driver->getCreatorList();
-unshift(@$creators, @creators);
-
-## Add the mpc path to the include paths, but preserve
-## the original @ARGV as it is included in the output of
-## most of the workspace creators.
-my(@args) = ('-include', "$mpcpath/config",
- '-include', "$mpcpath/templates", @ARGV);
-
-## Execute the driver
-exit($driver->execute($basePath, basename($0), \@args));
+my($driver) = new Driver($basePath, basename($0));
+exit($driver->run(@ARGV));