Subst $Id:...$ -> $Id$ (as in cvs ... -kk) in all the subdirectories.
[nethome.git] / bin / kernel / kernelkkfix
1 #! /bin/bash
2 #
3 # $Id$
4 #
5 # Subst $Id$ -> $Id$ (as in cvs ... -kk) in all the subdirectories.
6 # Required for proper diffing of CVSed Linux kernel sourcetrees.
7
8
9 find -type f|grep -v /CVS/|xargs perl -i -p -e '
10         s/\$(
11                 Author
12                 |Date
13                 |CVSHeader
14                 |Header
15                 |Id
16                 |Locker
17                 |Log
18                 |Name
19                 |RCSfile
20                 |Revision
21                 |Source
22                 |State
23                 )(?::[^\$]*)?\$
24                 /\$$1\$/gx;
25         '