summaryrefslogtreecommitdiff
path: root/fedora/makepatch.awk
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-09-22 21:41:40 +0000
committerRoland McGrath <roland@gnu.org>2004-09-22 21:41:40 +0000
commitf67c6d9684fca642710f4757cce040d78440cee9 (patch)
tree60ad1872d3b0f7ea274861d64fd83e8866453469 /fedora/makepatch.awk
parent3cd7504450f2d2930ef0ea1c051c31cb47aac5d2 (diff)
Migrate spec file and files it needs from old internal repository's redhat/ subdir to fedora-branch's fedora/ subdir.
Diffstat (limited to 'fedora/makepatch.awk')
-rw-r--r--fedora/makepatch.awk58
1 files changed, 58 insertions, 0 deletions
diff --git a/fedora/makepatch.awk b/fedora/makepatch.awk
new file mode 100644
index 0000000000..0a4abdb5a3
--- /dev/null
+++ b/fedora/makepatch.awk
@@ -0,0 +1,58 @@
+#!/bin/awk -f
+/^cvs (diff|server): tag.*is not in file/ {
+ print
+ next
+}
+/^cvs (diff|server): Diffing/ {
+ next
+}
+/^\? / {
+ next
+}
+/^Index:/ {
+ file=$2
+ next
+}
+/^===============/ {
+ next
+}
+/^RCS/ {
+ next
+}
+/^retrieving/ {
+ next
+}
+/^diff/ {
+ next
+}
+/^---/ {
+ if ($2 ~ /^\/dev\/null/ ||
+ $2 ~ /^\/tmp\//)
+ $2=file
+ if ($2 ~ /.cvsignore$/ ||
+ $2 ~ /^c_stubs/ ||
+ $2 ~ /^rtkaio/ ||
+ $2 ~ /^redhat/ ||
+ $2 ~ /^localedata\/charmaps\/GB18030/ ||
+ $2 ~ /^iconvdata\/gb18030\.c/ ||
+ $2 ~ /^glibc-compat/) {
+ hide = 1
+ next
+ } else {
+ hide = 0
+ }
+ sub(/^---[ ]*/,"--- " OLDVER "/")
+}
+/^\+\+\+/ {
+ if (hide)
+ next
+ if ($2 ~ /^\/dev\/null/ ||
+ $2 ~ /^\/tmp\//)
+ $2=file
+ sub(/^\+\+\+[ ]*/,"+++ " NEWVER "/")
+}
+{
+ if (hide)
+ next
+ print
+}