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