Migrate spec file and files it needs from old internal repository's redhat/ subdir...
authorroland <roland>
Wed, 22 Sep 2004 21:41:40 +0000 (21:41 +0000)
committerroland <roland>
Wed, 22 Sep 2004 21:41:40 +0000 (21:41 +0000)
fedora/makepatch.awk [new file with mode: 0644]

diff --git a/fedora/makepatch.awk b/fedora/makepatch.awk
new file mode 100644 (file)
index 0000000..0a4abdb
--- /dev/null
@@ -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
+}