#! /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 -e ' use bytes; while (<>) { s/\$( Author |Date |CVSHeader |Header |Id |Locker |Log |Name |RCSfile |Revision |Source |State )(?::[^\$]*)?\$ /\$$1\$/gx; print; } '