get_depend_info revision 7c478bd95313f5f23a4c958a745db2134aa03244
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# CDDL HEADER START
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# The contents of this file are subject to the terms of the
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Common Development and Distribution License, Version 1.0 only
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# (the "License"). You may not use this file except in compliance
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# with the License.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# See the License for the specific language governing permissions
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# and limitations under the License.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# When distributing Covered Code, include this CDDL HEADER in each
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# If applicable, add the following below this CDDL HEADER, with the
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# CDDL HEADER END
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Copyright (c) 2000 by Sun Microsystems, Inc.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# All rights reserved.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# ident "%Z%%M% %I% %E% SMI"
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# check for perl5 -- we use things unavailable in perl4
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncdie "Sorry, this program requires perl version 5.000 or up. You have $]. Stopping" if $] < 5.000;
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync$DBM_DIR_CHARACTERIZATION = "directory for the dbm databases";
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync"Usage: get_depend_info
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync -dbdir <$DBM_DIR_CHARACTERIZATION> [ -s ] [ -cons ] [ -root directory ]
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync [ -f ] [ -p ] [ -pkg SUNWxxx ] [ filename ]
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync [-h for help]\n";
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync"This program statically analyzes executable files and their
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncsymbolic links using /usr/bin/ldd and /usr/bin/strings. It
-dbdir <dir> the $DBM_DIR_CHARACTERIZATION
$PackageOnly = false;
$FileOnly = false;
$Verbose = true;
$Silent = false;
$SymLink = false;
$NoStrings = false;
$SymLink = true;
$Silent = true;
$PackageOnly = true;
$Verbose = false;
$FileOnly = true;
$Verbose = false;
$NoStrings = true;
$Silent = true;
&OpenDBs;
if (($mode !~ /(.)(.*)7/) && ($mode !~ /(.)(.*)5/) && ($mode !~ /(.)(.*)3/) && ($mode !~ /(.)(.*)1/)){
&CloseDBs;
$index += 6;
$found = 0;
$found++;
$found++;
$found++;
$found = 0;
$found++;
$found++;
$found++;
$line = $_;
$count = 0;
$count++;
$found = 0;
$found++;
$found++;