make-ldif revision 3900
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#!/bin/sh
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER START
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# The contents of this file are subject to the terms of the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Common Development and Distribution License, Version 1.0 only
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# (the "License"). You may not use this file except in compliance
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# with the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You can obtain a copy of the license at
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# trunk/opends/resource/legal-notices/OpenDS.LICENSE
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# See the License for the specific language governing permissions
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# and limitations under the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# file and include the License file at
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# add the following below this CDDL HEADER, with the fields enclosed
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# by brackets "[]" replaced with your own identifying information:
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Portions Copyright [yyyy] [name of copyright owner]
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER END
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Copyright 2006-2008 Sun Microsystems, Inc.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# This script may be used to generate LDIF data based on a provided template.
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteOPENDS_INVOKE_CLASS="org.opends.server.tools.makeldif.MakeLDIF"
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteexport OPENDS_INVOKE_CLASS
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteSCRIPT_NAME="make-ldif"
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteexport SCRIPT_NAME
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteWORKING_DIR=`pwd`
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortecd "`dirname "${0}"`"
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteSCRIPT_DIR=`pwd`
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortecd ..
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteINSTALL_ROOT=`pwd`
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteexport INSTALL_ROOT
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteNO_CHECK=1
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteexport NO_CHECK
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Set environment variables
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte. "${INSTALL_ROOT}/lib/_script-util.sh"
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteRETURN_CODE=$?
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteif test ${RETURN_CODE} -ne 0
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortethen
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte exit ${RETURN_CODE}
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortefi
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
cd "${WORKING_DIR}"
"${SCRIPT_DIR}/../lib/_server-script.sh" \
--resourcePath "${INSTANCE_ROOT}/config/MakeLDIF" "${@}"