#!/bin/sh -
#	$Id$
#
# Build the README.

echo 'Updating Berkeley DB README file...'

d=..

t=/tmp/__t
trap 'rm -f $t; exit 0' 0 1 2 3 13 15

# Change to the dist directory, if we seem to be above or adjacent to it.
if [ ! -r RELEASE ] ; then
	if [ -d dist ] ; then
		cd dist
	elif [ -d ../dist ] ; then
		cd ../dist
	fi
fi

. ./RELEASE

cat << END_OF_README>$t
$DB_VERSION_FULL_STRING

This is Berkeley DB Release $DB_VERSION from Oracle.  To view release and
installation documentation, load the distribution file docs/index.html
into your web browser.  Technical support can be obtained by visiting 
the Berkeley DB Oracle Technical Network (OTN) forum, here:

https://forums.oracle.com/forums/forum.jspa?forumID=271

END_OF_README

f=../README
cmp $t $f > /dev/null 2>&1 ||
    (echo "Building $f" && rm -f $f && cp $t $f)
