2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba#!/bin/sh
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba#
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# CDDL HEADER START
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba#
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# The contents of this file are subject to the terms of the
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# Common Development and Distribution License, Version 1.0 only
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# (the "License"). You may not use this file except in compliance
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# with the License.
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba#
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# You can obtain a copy of the license at
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# trunk/opends/resource/legal-notices/OpenDS.LICENSE
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# See the License for the specific language governing permissions
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# and limitations under the License.
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba#
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# When distributing Covered Code, include this CDDL HEADER in each
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# file and include the License file at
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# add the following below this CDDL HEADER, with the fields enclosed
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# by brackets "[]" replaced with your own identifying information:
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# Portions Copyright [yyyy] [name of copyright owner]
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba#
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# CDDL HEADER END
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba#
05b42f00b813c3dc70cbb80d62089f9cc0f6f549ludovicp#
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# Copyright 2006-2008 Sun Microsystems, Inc.
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# Portions Copyright 2011-2013 ForgeRock AS
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# This script may be used to generate LDIF data based on a provided template.
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaOPENDJ_INVOKE_CLASS="org.opends.server.tools.makeldif.MakeLDIF"
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaexport OPENDJ_INVOKE_CLASS
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaSCRIPT_NAME="make-ldif"
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaexport SCRIPT_NAME
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaWORKING_DIR=`pwd`
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambacd "`dirname "${0}"`"
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaSCRIPT_DIR=`pwd`
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambacd ..
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaINSTALL_ROOT=`pwd`
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaexport INSTALL_ROOT
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba# Set environment variables
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba. "${INSTALL_ROOT}/lib/_script-util.sh"
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaRETURN_CODE=$?
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambaif test ${RETURN_CODE} -ne 0
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambathen
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba exit ${RETURN_CODE}
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambafi
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgambacd "${WORKING_DIR}"
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba"${SCRIPT_DIR}/../lib/_server-script.sh" \
2fbc90647930ea0f3022332eb670d2d8e3de81e3pgamba --resourcePath "${INSTANCE_ROOT}/config/MakeLDIF" "${@}"
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff