minix/external/bsd/libelf/prepare-import.sh
Lionel Sambuc 84d9c625bf Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
- Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
2014-07-28 17:05:06 +02:00

42 lines
828 B
Bash
Executable file

#!/bin/sh
# $NetBSD: prepare-import.sh,v 1.3 2010/12/03 21:38:49 plunky Exp $
# Copy the FreeBSD src/lib/libelf directory contents to dist. Run
# this script and you're done.
#
# lib/ is built as SUBDIR from lib/Makefile.
#
# Use the following template to import
# cvs import src/external/bsd/libelf/dist FreeBSD FreeBSD-X-Y-Z
#
# don't forget to bump the lib/shlib_version if necessary
#
set -e
echo "Adding RCS tags .."
for f in $(grep -RL '\$NetBSD.*\$' dist | grep -v CVS); do
case $f in
*.[ch] | *.m4)
cat - > ${f}_tmp <<- EOF
/* \$NetBSD\$ */
EOF
sed -e 's,^__FBSDID.*,\/\* & \*\/,g' ${f} >> ${f}_tmp
mv ${f}_tmp ${f}
;;
*.[0-9])
cat - ${f} > ${f}_tmp <<- EOF
.\" \$NetBSD\$
.\"
EOF
mv ${f}_tmp ${f}
;;
*)
echo "No RCS tag added to ${f}"
;;
esac
done
echo "prepare-import done"