2 # $NetBSD: prepare-import.sh,v 1.1 2009/12/19 05:45:28 thorpej Exp $
4 # Copy the FreeBSD src/lib/libdwarf 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/libdwarf/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.*,\/\* & \*\/\
26 __RCSID\(\"\$NetBSD\$\"\)\;,g' ${f} >> ${f}_tmp
30 cat - ${f} > ${f}_tmp
<<- EOF
37 echo "No RCS tag added to ${f}"
42 echo "prepare-import done"