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