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