From: short <> Date: Tue, 26 Apr 2005 06:46:52 +0000 (+0000) Subject: Subst $Id:...$ -> $Id$ (as in cvs ... -kk) in all the subdirectories. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=834005271876d61fff4125c89db49234483b71f9 Subst $Id:...$ -> $Id$ (as in cvs ... -kk) in all the subdirectories. Required for proper diffing of CVSed Linux kernel sourcetrees. --- diff --git a/bin/kernel/kernelkkfix b/bin/kernel/kernelkkfix new file mode 100755 index 0000000..5972abc --- /dev/null +++ b/bin/kernel/kernelkkfix @@ -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; + '