3 # This file and its contents are supplied under the terms of the
4 # Common Development and Distribution License ("CDDL"), version 1.0.
5 # You may only use this file in accordance with the terms version
8 # A full copy of the text of the CDDL should have accompanied this
9 # source. A copy is of the CDDL is also available via the Internet
10 # at http://www.illumos.org/license/CDDL.
14 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
15 # Copyright 2016 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
19 # This extracts all the BSD copyrights (excluding the CDDL licenses)
20 # for use in a THIRDPARTYLICENSE file. It tries hard to avoid duplicates.
48 # We don't want to know about CDDL files. They don't
49 # require an explicit THIRDPARTYLICENSE file.
52 #print "$file is CDDL.\n";
64 # We have reached the end of the comment now.
68 # Check to see if we saw a copyright.
73 foreach $line (@block) {
78 push(@license, $line);
83 my $lic = join "\n", @license;
84 push (@
{$LICENSE{$lic}}, $file);
93 my $path = $File::Find
::name
;
96 if ($path =~ /\.[chs]$/) {
110 # sort files to get a stable ordering to aid wsdiff(1onbld)
111 @FILES = sort @FILES;
113 foreach $a (@FILES) {
117 foreach my $lic (sort keys %LICENSE) {
118 my @files = @
{$LICENSE{$lic}};
119 print "\nThe following files from the C library:\n";
120 foreach my $f (@files) {
123 print "are provided under the following terms:\n\n";