make-ldif revision 5636
de4157257515400c2c25373591135f110227b68cvboxsync#!/bin/sh
de4157257515400c2c25373591135f110227b68cvboxsync#
de4157257515400c2c25373591135f110227b68cvboxsync# CDDL HEADER START
de4157257515400c2c25373591135f110227b68cvboxsync#
de4157257515400c2c25373591135f110227b68cvboxsync# The contents of this file are subject to the terms of the
de4157257515400c2c25373591135f110227b68cvboxsync# Common Development and Distribution License, Version 1.0 only
de4157257515400c2c25373591135f110227b68cvboxsync# (the "License"). You may not use this file except in compliance
de4157257515400c2c25373591135f110227b68cvboxsync# with the License.
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync#
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# You can obtain a copy of the license at
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# trunk/opends/resource/legal-notices/OpenDS.LICENSE
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# See the License for the specific language governing permissions
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# and limitations under the License.
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync#
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# When distributing Covered Code, include this CDDL HEADER in each
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# file and include the License file at
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync# add the following below this CDDL HEADER, with the fields enclosed
de4157257515400c2c25373591135f110227b68cvboxsync# by brackets "[]" replaced with your own identifying information:
de4157257515400c2c25373591135f110227b68cvboxsync# Portions Copyright [yyyy] [name of copyright owner]
de4157257515400c2c25373591135f110227b68cvboxsync#
de4157257515400c2c25373591135f110227b68cvboxsync# CDDL HEADER END
de4157257515400c2c25373591135f110227b68cvboxsync#
de4157257515400c2c25373591135f110227b68cvboxsync#
de4157257515400c2c25373591135f110227b68cvboxsync# Copyright 2006-2008 Sun Microsystems, Inc.
de4157257515400c2c25373591135f110227b68cvboxsync# Portions Copyright 2011 ForgeRock AS
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync# This script may be used to generate LDIF data based on a provided template.
de4157257515400c2c25373591135f110227b68cvboxsyncOPENDJ_INVOKE_CLASS="org.opends.server.tools.makeldif.MakeLDIF"
de4157257515400c2c25373591135f110227b68cvboxsyncexport OPENDJ_INVOKE_CLASS
3186f45ef453b44e92adeddf57bae69632e2c66avboxsync
3186f45ef453b44e92adeddf57bae69632e2c66avboxsyncSCRIPT_NAME="make-ldif"
de4157257515400c2c25373591135f110227b68cvboxsyncexport SCRIPT_NAME
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsyncWORKING_DIR=`pwd`
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsynccd "`dirname "${0}"`"
ba8485daab567f4004a984eb709724cb2217d504vboxsyncSCRIPT_DIR=`pwd`
ba8485daab567f4004a984eb709724cb2217d504vboxsync
ba8485daab567f4004a984eb709724cb2217d504vboxsynccd ..
ba8485daab567f4004a984eb709724cb2217d504vboxsyncINSTALL_ROOT=`pwd`
e006a5cefba44e778d2bfec179aa00b347b31ecfvboxsyncexport INSTALL_ROOT
ba8485daab567f4004a984eb709724cb2217d504vboxsync
9d1274496c423743379ecfb581f623ccedd9ebeevboxsyncNO_CHECK=1
9f0a3520e48fa74caec1abadb643db5710ad97e0vboxsyncexport NO_CHECK
ba8485daab567f4004a984eb709724cb2217d504vboxsync
e006a5cefba44e778d2bfec179aa00b347b31ecfvboxsync# Set environment variables
de4157257515400c2c25373591135f110227b68cvboxsync. "${INSTALL_ROOT}/lib/_script-util.sh"
de4157257515400c2c25373591135f110227b68cvboxsyncRETURN_CODE=$?
de4157257515400c2c25373591135f110227b68cvboxsyncif test ${RETURN_CODE} -ne 0
de4157257515400c2c25373591135f110227b68cvboxsyncthen
3bddd917f8743d7e0773c2872c497ca4dae57c78vboxsync exit ${RETURN_CODE}
13ef4f36ce232d17f4738ffbc4ac21909898cc23vboxsyncfi
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsynccd "${WORKING_DIR}"
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync"${SCRIPT_DIR}/../lib/_server-script.sh" \
de4157257515400c2c25373591135f110227b68cvboxsync --resourcePath "${INSTANCE_ROOT}/config/MakeLDIF" "${@}"
de4157257515400c2c25373591135f110227b68cvboxsync