userland-mangler revision 181
943N/A# The contents of this file are subject to the terms of the 294N/A# Common Development and Distribution License (the "License"). 294N/A# You may not use this file except in compliance with the License. 919N/A# See the License for the specific language governing permissions 919N/A# and limitations under the License. 919N/A# When distributing Covered Code, include this CDDL HEADER in each 919N/A# If applicable, add the following below this CDDL HEADER, with the 919N/A# fields enclosed by brackets "[]" replaced with your own identifying 919N/A# information: Portions Copyright [yyyy] [name of copyright owner] 919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 294N/A# userland-mangler - a file mangling utility 294N/A# A simple program to mangle files to conform to Solaris WOS or Consoldation 294N/Afor descriptions of the following attributes: 970N/AATTRIBUTE TYPE ATTRIBUTE VALUE """ # is there anything to do? # append the ATTRIBUTES section Further information about this software can be found on the open source community website at %s. This software was built from source available at http://opensolaris.org/. The original community source was downloaded from %s # is there anything to do? # append the NOTES section # manpages must have a taxonomy defined # create a directory to write to # read the source document # skip reference only pages # tell man that we want tables (and eqn) print "Usage: %s [-m|--manifest (file)] [-d|--search-directory (dir)] [-D|--destination (dir)] " %
(sys.argv[0].split('/')[-1]) ["destination=", "search-directory=", "manifest="]) if opt in [
"-D",
"--destination" ]:
elif opt in [
"-d",
"--search-directory" ]:
elif opt in [
"-m",
"--manifest" ]: