finally in sync with archive
[bcm963xx.git] / userapps / opensource / net-snmp / perl / Makefile.subs.pl
diff --git a/userapps/opensource/net-snmp/perl/Makefile.subs.pl b/userapps/opensource/net-snmp/perl/Makefile.subs.pl
deleted file mode 100755 (executable)
index b946877..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-sub NetSNMPGetOpts {
-    my %ret;
-    my $rootpath = shift;
-    $rootpath = "../" if (!$rootpath);
-    $rootpath .= '/' if ($rootpath !~ /\/$/);
-
-    if ($ENV{'NET-SNMP-CONFIG'} && 
-       $ENV{'NET-SNMP-IN-SOURCE'}) {
-       # have env vars, pull from there
-       $ret{'nsconfig'} = $ENV{'NET-SNMP-CONFIG'};
-       $ret{'insource'} = $ENV{'NET-SNMP-IN-SOURCE'};
-    } else {
-       # don't have env vars, pull from command line and put there
-       GetOptions("NET-SNMP-CONFIG=s" => \$ret{'nsconfig'},
-                  "NET-SNMP-IN-SOURCE=s" => \$ret{'insource'});
-
-       if ($ret{'insource'} eq "true" && $ret{'nsconfig'} eq "") {
-           $ret{'nsconfig'}="sh ROOTPATH../net-snmp-config";
-       } elsif ($ret{'nsconfig'} eq "") {
-           $ret{'nsconfig'}="net-snmp-config";
-       }
-
-       $ENV{'NET-SNMP-CONFIG'}    = $ret{'nsconfig'};
-       $ENV{'NET-SNMP-IN-SOURCE'} = $ret{'insource'};
-    }  
-    
-    $ret{'nsconfig'} =~ s/ROOTPATH/$rootpath/;
-
-    $ret{'rootpath'} = $rootpath;
-
-    \%ret;
-}