Subversion Repositories gelsvn

Rev

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

Rev 217 Rev 259
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 217 2006-05-05 09:35:48Z 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 Config;
16
use Config;
17
use FindBin;
17
use FindBin;
18
use File::Spec;
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') {
22
if ($^O eq 'VMS') {
23
  $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
23
  $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
24
  $basePath = VMS::Filespec::unixify($basePath);
24
  $basePath = VMS::Filespec::unixify($basePath);
25
}
25
}
26
unshift(@INC, $basePath . '/modules');
26
unshift(@INC, $basePath . '/modules');
27
 
27
 
28
require MWC;
28
require MWC;
29
 
29
 
30
# ************************************************************
30
# ************************************************************
31
# Subroutine Section
31
# Subroutine Section
32
# ************************************************************
32
# ************************************************************
33
 
33
 
34
sub getBasePath {
34
sub getBasePath {
35
  return $basePath;
35
  return $basePath;
36
}
36
}
37
 
37
 
38
# ************************************************************
38
# ************************************************************
39
# Main Section
39
# Main Section
40
# ************************************************************
40
# ************************************************************
41
 
41
 
42
my($driver) = new MWC();
42
my($driver) = new MWC();
43
exit($driver->execute($basePath, basename($0), \@ARGV));
43
exit($driver->execute($basePath, basename($0), \@ARGV));
44
 
44