#
# 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
#
#
#
#
# Make sure there is a correctly formed copyright message containing
# the current year.
#
# We treat extant but incorrect copyrights of known format as present
# for the purposes of the "no copyright found" messages to avoid
# treating every otherwise incorrect copyright as also not present
#
if line:
else:
# pre-2002 copyright with '(c)'
# pre-2002 copyright with 'by'
# last valid Sun copyright
r'(\s+)(All rights reserved\.)?')
# old, check to make sure no longer present
# initial Oracle copyright
r'All rights reserved\.')
if not filename:
lineno += 1
if check_license:
ret = 1
continue
rights += 1
ret = 1
continue
rights += 1
ret = 1
continue
rights += 1
ret = 1
continue
#
# group 1 = optional initial year
# group 2 = current year
# group 3 = comma after current year
# group 4 = spacing between phrases
#
if match:
# only check for the old license message on the line
# following a copyright match
rights += 1
"be %s" %
ret = 1
ret = 1
"and all rights reserved phrases",
ret = 1
if rights == 0:
ret = 1
return ret