Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / libelf / prepare-import.sh
blob54bf67a35af966f51e5e33d9402dde0914a99f37
1 #!/bin/sh
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
15 set -e
17 echo "Adding RCS tags .."
18 for f in $(grep -RL '\$NetBSD.*\$' dist | grep -v CVS); do
19 case $f in
20 *.[ch] | *.m4)
21 cat - > ${f}_tmp <<- EOF
22 /* \$NetBSD\$ */
24 EOF
25 sed -e 's,^__FBSDID.*,\/\* & \*\/,g' ${f} >> ${f}_tmp
26 mv ${f}_tmp ${f}
28 *.[0-9])
29 cat - ${f} > ${f}_tmp <<- EOF
30 .\" \$NetBSD\$
31 .\"
32 EOF
33 mv ${f}_tmp ${f}
36 echo "No RCS tag added to ${f}"
38 esac
39 done
41 echo "prepare-import done"