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