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