2 # $NetBSD: prepare-import.sh,v 1.1 2009/12/19 05:45:28 thorpej Exp $
4 # Copy the FreeBSD src/lib/libelf directory contents to dist. Run
5 # this script and you're done.
7 # lib/ is built as SUBDIR from external/lib/Makefile.
9 # Use the following template to import
10 # cvs import src/external/bsd/libelf/dist FreeBSD FreeBSD-X-Y-Z
12 # don't forget to bump the lib/shlib_version if necessary
17 echo "Adding RCS tags .."
18 for f
in $
(grep -RL '\$NetBSD.*\$' dist |
grep -v CVS
); do
21 cat - > ${f}_tmp
<<- EOF
25 sed -e 's,^__FBSDID.*,\/\* & \*\/,g' ${f} >> ${f}_tmp
29 cat - ${f} > ${f}_tmp
<<- EOF
36 echo "No RCS tag added to ${f}"
41 echo "prepare-import done"