Home | History | Annotate | Line # | Download | only in db
db2netbsd revision 1.1
      1  1.1  cgd #!/bin/sh
      2  1.1  cgd #	$NetBSD: db2netbsd,v 1.1 1996/05/03 22:43:02 cgd Exp $
      3  1.1  cgd 
      4  1.1  cgd # This version transforms a Berkeley DB distribution into something
      5  1.1  cgd # which can be 'cvs import'ed into the NetBSD source repository.
      6  1.1  cgd # It is to be run in the untarred Berkeley DB distribution directory
      7  1.1  cgd # (e.g. the "db.1.85" directory created by tar xvf), and sets up
      8  1.1  cgd # the destination tree in place.
      9  1.1  cgd 
     10  1.1  cgd version=`basename $PWD | sed -e 's/db\.//'`
     11  1.1  cgd releasetag=`basename $PWD | sed -e 's/\./-/g'`
     12  1.1  cgd 
     13  1.1  cgd CLEANFILES="PORT docs test/btree.tests test/hash.tests"
     14  1.1  cgd 
     15  1.1  cgd # clean up pieces that we never import
     16  1.1  cgd /bin/rm -rf $CLEANFILES
     17  1.1  cgd find . -type l -o -name tags | xargs /bin/rm -f
     18  1.1  cgd 
     19  1.1  cgd # The include files are already in place
     20  1.1  cgd 
     21  1.1  cgd # Put the regression tests in the right place
     22  1.1  cgd mkdir -p regress/lib/libc
     23  1.1  cgd mv test regress/lib/libc/db
     24  1.1  cgd 
     25  1.1  cgd # Put the libc pieces in the right place.
     26  1.1  cgd mkdir -p lib/libc/db
     27  1.1  cgd mv Makefile.inc README btree changelog db hash man mpool recno lib/libc/db
     28  1.1  cgd 
     29  1.1  cgd echo "import with:"
     30  1.1  cgd echo "cvs import -m \"Import of Berkeley DB version $version\" \
     31  1.1  cgd src CSRG $releasetag"
     32