2.3.90-1
[glibc.git] / fedora / makepatch.awk
blobfba827de4b312f419354989293236d1905c9c682
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 hide = 1
39 next
40 } else {
41 hide = 0
43 sub(/^---[ ]*/,"--- " OLDVER "/")
45 /^\+\+\+/ {
46 if (hide)
47 next
48 if ($2 ~ /^\/dev\/null/ ||
49 $2 ~ /^\/tmp\//)
50 $2=file
51 sub(/^\+\+\+[ ]*/,"+++ " NEWVER "/")
54 if (hide)
55 next
56 print