Subversion Repositories gelsvn

Rev

Rev 198 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 198 Rev 217
1
eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
1
eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
2
    & eval 'exec perl -w -S $0 $argv:q'
2
    & eval 'exec perl -w -S $0 $argv:q'
3
    if 0;
3
    if 0;
4
 
4
 
5
# ******************************************************************
5
# ******************************************************************
6
#      Author: Chad Elliott
6
#      Author: Chad Elliott
7
#        Date: 6/17/2002
7
#        Date: 6/17/2002
8
#         $Id: mwc.pl 198 2005-12-15 11:30:53Z bj $
8
#         $Id: mwc.pl 217 2006-05-05 09:35:48Z bj $
9
# ******************************************************************
9
# ******************************************************************
10
 
10
 
11
# ******************************************************************
11
# ******************************************************************
12
# Pragma Section
12
# Pragma Section
13
# ******************************************************************
13
# ******************************************************************
14
 
14
 
15
use strict;
15
use strict;
16
use Cwd;
-
 
17
use Config;
16
use Config;
18
use FindBin;
17
use FindBin;
-
 
18
use File::Spec;
19
use File::Basename;
19
use File::Basename;
20
 
20
 
21
my($basePath) = $FindBin::Bin;
21
my($basePath) = $FindBin::Bin;
-
 
22
if ($^O eq 'VMS') {
-
 
23
  $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
-
 
24
  $basePath = VMS::Filespec::unixify($basePath);
-
 
25
}
22
unshift(@INC, $basePath . '/modules');
26
unshift(@INC, $basePath . '/modules');
23
 
27
 
24
require MWC;
28
require MWC;
25
 
29
 
26
# ************************************************************
30
# ************************************************************
27
# Subroutine Section
31
# Subroutine Section
28
# ************************************************************
32
# ************************************************************
29
 
33
 
30
sub getBasePath {
34
sub getBasePath {
31
  return $basePath;
35
  return $basePath;
32
}
36
}
33
 
37
 
34
# ************************************************************
38
# ************************************************************
35
# Main Section
39
# Main Section
36
# ************************************************************
40
# ************************************************************
37
 
41
 
38
my($driver) = new MWC();
42
my($driver) = new MWC();
39
exit($driver->execute($basePath, basename($0), \@ARGV));
43
exit($driver->execute($basePath, basename($0), \@ARGV));
40
 
44