tools/gen-components
changeset 1139 2fe2a52488cb
parent 1063 ce6e2ed3767e
child 1205 6c6c27bcf9ac
equal deleted inserted replaced
1138:6e1f85fa0151 1139:2fe2a52488cb
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    19 #
    19 #
    20 # CDDL HEADER END
    20 # CDDL HEADER END
    21 #
    21 #
    22 # Copyright (c) 2012, Oracle and/or it's affiliates.  All rights reserved.
    22 # Copyright (c) 2012, 2013, Oracle and/or it's affiliates.  All rights reserved.
    23 #
    23 #
    24 #
    24 #
    25 # gen_components
    25 # gen_components
    26 # A simple script to generate (on stdout), the component.html web page 
    26 # A simple script to generate (on stdout), the component.html web page 
    27 # found at: http://userland.us.oracle.com/components.html
    27 # found at: http://userland.us.oracle.com/components.html
   235 # Write out a usage message showing valid options to this script.
   235 # Write out a usage message showing valid options to this script.
   236 def usage():
   236 def usage():
   237     print  >> sys.stderr, \
   237     print  >> sys.stderr, \
   238 """
   238 """
   239 Usage: 
   239 Usage: 
   240       update_man_pages.py [OPTION...]
   240       gen-components [OPTION...]
   241 
   241 
   242 -d, --debug
   242 -d, --debug
   243       Turn on debugging
   243       Turn on debugging
   244 
   244 
   245 -o, --owners
   245 -o, --owners
   252     sys.exit(1)
   252     sys.exit(1)
   253 
   253 
   254 
   254 
   255 if __name__ == "__main__":
   255 if __name__ == "__main__":
   256     workspace = os.getenv('WS_TOP')
   256     workspace = os.getenv('WS_TOP')
   257     owners_file = "/net/userland.us.oracle.com/gates/private/RM-RE-list.txt"
   257     owners_file = "/net/userland.us.oracle.com/gates/private/RE-RM-list.txt"
   258 
   258 
   259     try:
   259     try:
   260         opts, args = getopt.getopt(sys.argv[1:], "do:w:",
   260         opts, args = getopt.getopt(sys.argv[1:], "do:w:",
   261             [ "debug", "owners=", "workspace=" ])
   261             [ "debug", "owners=", "workspace=" ])
   262     except getopt.GetoptError, err:
   262     except getopt.GetoptError, err: