11.1Scgd#!/bin/sh
21.2Skleink#	$NetBSD: db2netbsd,v 1.2 1999/02/16 18:01:37 kleink Exp $
31.1Scgd
41.1Scgd# This version transforms a Berkeley DB distribution into something
51.1Scgd# which can be 'cvs import'ed into the NetBSD source repository.
61.1Scgd# It is to be run in the untarred Berkeley DB distribution directory
71.1Scgd# (e.g. the "db.1.85" directory created by tar xvf), and sets up
81.1Scgd# the destination tree in place.
91.1Scgd
101.1Scgdversion=`basename $PWD | sed -e 's/db\.//'`
111.1Scgdreleasetag=`basename $PWD | sed -e 's/\./-/g'`
121.1Scgd
131.2SkleinkCLEANFILES="PORT docs hash/search.h test/btree.tests test/hash.tests"
141.1Scgd
151.1Scgd# clean up pieces that we never import
161.1Scgd/bin/rm -rf $CLEANFILES
171.1Scgdfind . -type l -o -name tags | xargs /bin/rm -f
181.1Scgd
191.1Scgd# The include files are already in place
201.1Scgd
211.1Scgd# Put the regression tests in the right place
221.1Scgdmkdir -p regress/lib/libc
231.1Scgdmv test regress/lib/libc/db
241.1Scgd
251.1Scgd# Put the libc pieces in the right place.
261.1Scgdmkdir -p lib/libc/db
271.1Scgdmv Makefile.inc README btree changelog db hash man mpool recno lib/libc/db
281.1Scgd
291.1Scgdecho "import with:"
301.1Scgdecho "cvs import -m \"Import of Berkeley DB version $version\" \
311.1Scgdsrc CSRG $releasetag"
32