File: header.awk

package info (click to toggle)
mutt 1.5.20-9%2Bsqueeze4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 15,064 kB
  • ctags: 5,313
  • sloc: ansic: 79,584; sh: 4,606; perl: 958; makefile: 720; yacc: 318; awk: 17
file content (23 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /usr/bin/gawk -f

BEGIN {
	sep = "============================================================================="
}

FILENAME ~ /debian$/ {
	nextfile
}

/^== END PATCH$/ {
	print ""
	nextfile
}

FNR == 1 {
	print FILENAME "\n" substr(sep, 0, length(FILENAME)) "\n"
	next
}

{
	print
}