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