Subst $Id:...$ -> $Id$ (as in cvs ... -kk) in all the subdirectories.
authorshort <>
Tue, 26 Apr 2005 06:46:52 +0000 (06:46 +0000)
committershort <>
Tue, 26 Apr 2005 06:46:52 +0000 (06:46 +0000)
Required for proper diffing of CVSed Linux kernel sourcetrees.

bin/kernel/kernelkkfix [new file with mode: 0755]

diff --git a/bin/kernel/kernelkkfix b/bin/kernel/kernelkkfix
new file mode 100755 (executable)
index 0000000..5972abc
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/bash
+#
+# $Id$
+#
+# Subst $Id$ -> $Id$ (as in cvs ... -kk) in all the subdirectories.
+# Required for proper diffing of CVSed Linux kernel sourcetrees.
+
+
+find -type f|grep -v /CVS/|xargs perl -i -p -e '
+       s/\$(
+               Author
+               |Date
+               |CVSHeader
+               |Header
+               |Id
+               |Locker
+               |Log
+               |Name
+               |RCSfile
+               |Revision
+               |Source
+               |State
+               )(?::[^\$]*)?\$
+               /\$$1\$/gx;
+       '