[BACK]Return to db2netbsd CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / db

File: [cvs.NetBSD.org] / src / lib / libc / db / db2netbsd (download)

Revision 1.1, Fri May 3 22:43:02 1996 UTC (26 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: nsswitch, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, ivory_soap2

a script, along the lines of the gcc2netbsd script used to set up gcc
trees for import, to set up Berkeley DB trees for import.

#	$NetBSD: db2netbsd,v 1.1 1996/05/03 22:43:02 cgd Exp $

# This version transforms a Berkeley DB distribution into something
# which can be 'cvs import'ed into the NetBSD source repository.
# It is to be run in the untarred Berkeley DB distribution directory
# (e.g. the "db.1.85" directory created by tar xvf), and sets up
# the destination tree in place.

version=`basename $PWD | sed -e 's/db\.//'`
releasetag=`basename $PWD | sed -e 's/\./-/g'`

CLEANFILES="PORT docs test/btree.tests test/hash.tests"

# clean up pieces that we never import
/bin/rm -rf $CLEANFILES
find . -type l -o -name tags | xargs /bin/rm -f

# The include files are already in place

# Put the regression tests in the right place
mkdir -p regress/lib/libc
mv test regress/lib/libc/db

# Put the libc pieces in the right place.
mkdir -p lib/libc/db
mv Makefile.inc README btree changelog db hash man mpool recno lib/libc/db

echo "import with:"
echo "cvs import -m \"Import of Berkeley DB version $version\" \
src CSRG $releasetag"