2 # $NetBSD: prepare-import.sh$
4 # Extract the new tarball and rename the libevent-X.Y.Z directory
5 # to dist. Run this script and check for additional files and
6 # directories to prune, only relevant content is included.
8 # lib/ is built as SUBDIR from external/lib/Makefile, and
9 # the regression tests are used from tests/lib/libevent
11 # Use the following template to import
12 # cvs import src/external/bsd/file/dist LIBEVENT libevent-X-Y-Z-stable
14 # don't forget to bump the lib/shlib_version and commit the include/ files
19 if [ -f dist
/configure
]; then
24 mv config.h ..
/include
# not needed for 2.*
25 mv event-config.h ..
/include
29 echo "Removing unwanted distfiles .."
31 rm -Rf Doxyfile Makefile.am Makefile.
in WIN32-Code WIN32-Prj \
32 aclocal.
m4 autogen.sh compat config.guess config.h.
in config.sub \
33 configure configure.
in devpoll.c epoll.c epoll_sub.c event_rpcgen.py \
34 evport.c install-sh ltmain.sh missing mkinstalldirs sample \
35 strlcpy.c test
/Makefile.am test
/Makefile.
in test
/bench.c \
36 test
/regress.rpc test
/test-eof.c test
/test-init.c test
/test-time.c \
37 test
/test-weof.c test
/test.sh
41 echo "Adding RCS tags .."
42 for f
in $
(grep -RL '\$NetBSD.*\$' dist include |
grep -v CVS
); do
45 cat - ${f} > ${f}_tmp
<<- EOF
51 cat - ${f} > ${f}_tmp
<<- EOF
58 echo "No RCS tag added to ${f}"
63 echo "prepare-import done"