Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / bsd / elftoolchain / addrcsid
blobfeece8f95a17fe0744c79d15c627be2aaa9da47b
1 #!/bin/sh
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.
6 set -e
8 echo "Adding RCS tags .."
9 for f in $(grep -RL '\$NetBSD.*\$' $1 | grep -v CVS); do
10 case $f in
11 *.[ch] | *.m4)
12 sed -e '/^\/\*-/ {
14 /* \$NetBSD\$ */\
17 }' -e '/^ELFTC_VCSID/ {
19 __RCSID("\$NetBSD\$");
21 }' < ${f} > tmp$$ && mv tmp$$ ${f}
23 *.[0-9])
24 cat - ${f} > ${f}_tmp <<- EOF
25 .\" \$NetBSD\$
26 .\"
27 EOF
28 mv ${f}_tmp ${f}
31 echo "No RCS tag added to ${f}"
33 esac
34 done
36 echo "prepare-import done"