bass-o-matic revision 5680
# 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. # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # 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] # Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. # 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. print >>
debug,
"searching %s for component directories" %
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) print "Usage: %s [-c|--components=(path|depend)] [-z|--zone (zone)]" %
(sys.argv[0].split('/')[-1]) [ "debug", "workspace=", "components=", "make", "component=", "template-zone=" ]) if opt in [
"-w",
"--workspace" ]:
elif opt in [
"-l",
"--components" ]:
elif opt in [
"--make" ]:
elif opt in [
"--component" ]:
elif opt in [
"--template-zone" ]:
elif opt in [
"-d",
"--debug" ]: