summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/db2netbsd
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/db/db2netbsd')
-rw-r--r--lib/libc/db/db2netbsd31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/libc/db/db2netbsd b/lib/libc/db/db2netbsd
new file mode 100644
index 00000000000..e29c97593bc
--- /dev/null
+++ b/lib/libc/db/db2netbsd
@@ -0,0 +1,31 @@
+#!/bin/sh
+# $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"