bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# CDDL HEADER START
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# The contents of this file are subject to the terms of the
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Common Development and Distribution License (the "License").
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# You may not use this file except in compliance with the License.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# See the License for the specific language governing permissions
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# and limitations under the License.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# When distributing Covered Code, include this CDDL HEADER in each
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# If applicable, add the following below this CDDL HEADER, with the
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# fields enclosed by brackets "[]" replaced with your own identifying
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# information: Portions Copyright [yyyy] [name of copyright owner]
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# CDDL HEADER END
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Check for valid link-editor mapfile comment blocks in source files.
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowesys.path.insert(1, os.path.join(os.path.dirname(__file__), "..", "lib",
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# Allow running from the source tree, using the modules in the source tree
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowesys.path.insert(2, os.path.join(os.path.dirname(__file__), '..'))
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami sys.stderr.write('Failed to open exception list: '
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami sys.stderr.write('''Usage: %s [-v] [-x exceptions] paths...
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami -v report on all files, not just those with errors.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami -x exceptions load an exceptions file
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami opts, args = getopt.getopt(sys.argv[1:], 'avx:')