Wed Jun 9 07:35:19 UTC 2010 Johnny Willemsen <jwillemsen@remedy.nl>
[MPC.git] / depgen.pl
blob9a3af91a5a320e9b51001303f938b686682cf003
1 #! /usr/bin/perl
2 eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
3 & eval 'exec perl -w -S $0 $argv:q'
4 if 0;
6 # ************************************************************
7 # Description : Generate dependencies for Make and NMake.
8 # Author : Chad Elliott
9 # Create Date : 5/06/2002
10 # $Id$
11 # ************************************************************
13 # ************************************************************
14 # Pragma Section
15 # ************************************************************
17 use strict;
18 use FindBin;
19 use File::Spec;
20 use File::Basename;
22 my $basePath = $FindBin::Bin;
23 if ($^O eq 'VMS') {
24 $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
25 $basePath = VMS::Filespec::unixify($basePath);
27 unshift(@INC, $basePath . '/modules/Depgen', $basePath . '/modules');
29 require Driver;
31 # ************************************************************
32 # Main Section
33 # ************************************************************
35 my $driver = new Driver();
36 exit($driver->run(\@ARGV));