0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

Fix more license headers

This commit is contained in:
H. Peter Anvin
2025-10-01 12:05:34 -07:00
parent 85a8d85174
commit 4acc3dbccc
13 changed files with 32 additions and 17 deletions

View File

@@ -57,7 +57,8 @@ foreach my $file (@ARGV) {
$nsuf = ' */';
}
my @hdr = ();
if (scalar(@lines) && $lines[0] =~ /^\#\!/) {
# Shebang and emacs mode lines should be left at the top
while (scalar(@lines) && $lines[0] =~ /^(?:\#\!|.*\-\*\-)/) {
push(@hdr, shift(@lines));
}
push(@hdr, $npfx.'SPDX-License-Identifier: BSD-2-Clause'.$nsuf);