#!/bin/sh -
#	$Id: s_readme,v 1.6 2004/12/12 20:41:58 gmf Exp $
#
# Build the README.

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

. RELEASE

(echo "$DBXML_VERSION_STRING" &&
 echo "" &&
 echo -n "This is version " &&
 echo -n "$DBXML_VERSION_MAJOR.$DBXML_VERSION_MINOR.$DBXML_VERSION_PATCH" &&
 echo " of Berkeley DB XML from Sleepycat Software." &&
 echo "To view the release documentation, see" &&
 echo "    dbxml/docs/index.html" &&
 echo "" &&
 echo "For build instructions, see" &&
 echo "    dbxml/docs/ref_xml/xml_unix/intro.html for UNIX-like platforms" &&
 echo " or dbxml/docs/ref_xml/xml_win/intro.html for Microsoft Windows"
 echo "" &&
 echo "To see a summary of changes in this release, as well as the"
 echo "lastest patches, and known issues, see the download page at"
 echo "   http://www.sleepycat.com/download"
 echo "" &&
 echo "Contact support@sleepycat.com if you have problems or questions.") > $t

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