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