2 # $NetBSD: addrcsid,v 1.1 2014/03/09 16:58:03 christos Exp $
4 # This is meant to be run after import to add rcsids to new files.
8 echo "Adding RCS tags .."
9 for f
in $
(grep -RL '\$NetBSD.*\$' $1 |
grep -v CVS
); do
17 }' -e '/^ELFTC_VCSID/ {
19 __RCSID("\$NetBSD\$");
21 }' < ${f} > tmp$$
&& mv tmp$$
${f}
24 cat - ${f} > ${f}_tmp
<<- EOF
31 echo "No RCS tag added to ${f}"
36 echo "prepare-import done"