tools/llvm: Do not build with symbols
[minix3.git] / external / bsd / libelf / prepare-import.sh
blobd3a2b85fb06a6609e945deaf1b507b0b1bdb4332
1 #!/bin/sh
2 # $NetBSD: prepare-import.sh,v 1.3 2010/12/03 21:38:49 plunky 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 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"