#!/usr/bin/ksh93
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#ident "@(#)install-jdbc 1.1 08/06/03 SMI"
source "${SRC}/tools/install.subr"
typeset PREFIX="${ROOT}/usr/mysql/connectors"
typeset JAVADIR="${PREFIX}/jdbc/5.1"
typeset VER=`pwd`/mysql-connector-java-5.1.5
typeset DOCS=`pwd`/connector-j-en.html-chapter
# functions - search for "START HERE" to find start of control flow
function install_jar
{
set -o errexit
cd "${VER}"
_install N mysql-connector-java-5.1.5-bin.jar "${JAVADIR}/mysql-connector-java-5.1.5-bin.jar" 755
return 0
}
function install_docs
{
set -o errexit
cd ${DOCS}
_install N cj-news.html "${JAVADIR}/docs/cj-news.html" 444
_install N connector-j-reference.html "${JAVADIR}/docs/connector-j-reference.html" 444
_install N connector-j-versions.html "${JAVADIR}/docs/connector-j-versions.html" 444
_install N mysql-html.css "${JAVADIR}/docs/mysql-html.css" 444
_install N connector-j-examples.html "${JAVADIR}/docs/connector-j-examples.html" 444
_install N connector-j-support.html "${JAVADIR}/docs/connector-j-support.html" 444
_install N connector-j.html "${JAVADIR}/docs/connector-j.html" 444
_install N connector-j-installing.html "${JAVADIR}/docs/connector-j-installing.html" 444
_install N connector-j-usagenotes.html "${JAVADIR}/docs/connector-j-usagenotes.html" 444
_install N index.html "${JAVADIR}/docs/index.html" 444
return 0
}
install_jar
install_docs
exit 0