2.3.5-8
[glibc.git] / fedora / makepatch.awk
bloba87f74130422c9a76203c0c28c13b7d19f14ed4e
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 ~ /^fedora/ ||
36 $2 ~ /^localedata\/charmaps\/GB18030/ ||
37 $2 ~ /^iconvdata\/gb18030\.c/ ||
38 $2 ~ /^glibc-compat/) {
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