File: replace-copyright-block.awk

package info (click to toggle)
kadu 4.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,532 kB
  • sloc: cpp: 128,331; sh: 988; awk: 105; makefile: 75
file content (20 lines) | stat: -rwxr-xr-x 297 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# *   %kadu copyright begin                                                 *
# *   %kadu copyright end                                                   *

BEGIN {
	copy = 1
}

/%kadu copyright end%/ {
	print AUTHORS
	copy = 1
}

{
	if (copy)
		print $0
}

/%kadu copyright begin%/ {
	copy = 0
}