Update Copyright lines.
[glibc.git] / fedora / makepatch.awk
blobfadf1c7e560928f495c3b927a5672765391a8f9c
1 #!/bin/awk -f
2 /^cvs (diff|server): tag.*is not in file/ {
3 print
4 next
6 /^cvs (diff|server): Diffing/ {
7 next
9 /^\? / {
10 next
12 /^Index:/ {
13 file=$2
14 next
16 /^===============/ {
17 next
19 /^RCS/ {
20 next
22 /^retrieving/ {
23 next
25 /^diff/ {
26 next
28 /^---/ {
29 if ($2 ~ /^\/dev\/null/ ||
30 $2 ~ /^\/tmp\//)
31 $2=file
32 if ($2 ~ /.cvsignore$/ ||
33 $2 ~ /^c_stubs/ ||
34 $2 ~ /^rtkaio/ ||
35 $2 ~ /^powerpc-cpu/ ||
36 $2 ~ /^fedora/ ||
37 $2 ~ /^localedata\/charmaps\/GB18030/ ||
38 $2 ~ /^iconvdata\/gb18030\.c/) {
39 hide = 1
40 next
41 } else {
42 hide = 0
44 sub(/^---[ ]*/,"--- " OLDVER "/")
46 /^\+\+\+/ {
47 if (hide)
48 next
49 if ($2 ~ /^\/dev\/null/ ||
50 $2 ~ /^\/tmp\//)
51 $2=file
52 sub(/^\+\+\+[ ]*/,"+++ " NEWVER "/")
55 if (hide)
56 next
57 print