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