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