#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# A simple program to enumerate components in the userland gate and report
# on dependency related information.
#
# Locate SCM directories containing Userland components by searching from
# from a supplied top of tree for .p5m files. Once a .p5m file is located,
# that directory is added to the list and no children are searched.
paths = []
if debug:
found = 0
if expression.match(name):
if debug:
break
if path:
# get supplied packages (cd path ; gmake print-package-names)
# get supplied paths (cd path ; gmake print-package-paths)
# get required paths (cd path ; gmake print-required-paths)
s1 = set(self.required_paths)
s2 = set(component.supplied_paths)
if s1.intersection(s2):
return result
if self.debug:
p = proc.stdout
if self.debug:
if proc.returncode != 0:
return result
return result
sys.exit(1)
# FLUSH STDOUT
components = {}
try:
[ "debug", "workspace=", "components=",
"make", "component=", "template-zone=" ])
usage()
else:
if make_arg:
if template_zone:
print "using template zone %s to create a build environment for %s to run '%s'" % (template_zone, component_arg, ['gmake'] + args)
if components_arg:
print "%s" % path
sys.exit(0)
sys.exit(1)
if __name__ == "__main__":
main()