Fix cleanup and diff.
[nethome.git] / bin / kernel / kernelLogfix
1 #! /bin/bash
2 #
3 # $Id$
4 #
5 # Subst $Log...$ -> %Log...% 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 -e '
10         use bytes;
11         while (<>) {
12                 s/\$(
13                         Log
14                         )(?::[^\$]*)?\$
15                         /\%$1\%/gx;
16                 print;
17         }
18         '