#!/bin/sh -
#
# 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 Berkeley DB XML $DBXML_VERSION_FAMILY$DBXML_VERSION_LETTER" &&
 echo -n " Release $DBXML_VERSION_RELEASE" &&
 echo " from Oracle. To view the " &&
 echo "release documentation, see:" &&
 echo "    dbxml/docs/index.html" &&
 echo "" &&
 echo "For build instructions, see:"
 echo "    dbxml/docs/programmer_reference_xml/xml_unix.html for UNIX-like platforms" &&
 echo "or:"
 echo "    dbxml/docs/programmer_reference_xml/xml_win_intro.html for Microsoft Windows"
 echo "" &&
 echo "If this is a Windows binary installation, see:"
 echo "    dbxml/docs/programmer_reference_xml/xml_win_bin.html"
 echo "" &&
 echo "To see a summary of changes in this release, see:"
 echo "    dbxml/docs/programmer_reference_xml/changelogs.html" &&
 echo "" &&
 echo "The documentation is available online here:" &&
 echo "   http://docs.oracle.com/cd/E17276_01/html/toc.htm"&&
 echo "" &&
 echo "To see product information as well as the latest"
 echo "patches and known issues for Berkeley DB XML, see:"
 echo "   http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index-083851.html"
 echo "" &&
 echo "Visit the Berkeley DB XML forum on the Oracle Technology Network"
 echo "for additional information and support:"
 echo "  https://community.oracle.com/community/database/high_availability/berkeley_db_family/berkeley_db_xml") > $t

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