create_opendj_zip.sh revision 5fa3e419a5008528550756b7eb0ed31ab5d06b8c
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# Copyright (c) 2010-2011 ForgeRock AS. All Rights Reserved
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# The contents of this file are subject to the terms
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# of the Common Development and Distribution License
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# (the License). You may not use this file except in
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# compliance with the License.
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# You can obtain a copy of the License at
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# See the License for the specific language governing
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# permission and limitations under the License.
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# When distributing Covered Code, include this CDDL
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# Header Notice in each file and include the License file
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# If applicable, add the following below the CDDL Header,
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# with the fields enclosed by brackets [] replaced by
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# your own identifying information:
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# "Portions Copyrighted [year] [name of copyright owner]"
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# This script creates the cut down OpenDJ.zip for inclusion in the build
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk# OpenDJ libraries must be copied into extlib manually
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis Papp#Portions Copyrighted 2013 ForgeRock, AS.
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenkif [ -z ${@} ] ; then
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk echo "Error! No command line argument supplied"
42a4017e9363f11617b05dfb9a99b90460194220jeff.schenk echo "Usage: ./create_opendj_zip.sh OPENDJ_FOLDER"
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis Pappfor i in ${CONFIG} template/config/config.ldif ; do
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis Papp#strip out the HTTP Connection Handler class so we don't get a classloader issues with tomcat 6
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis Papp#and we can use a smaller set of jars
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis Pappfor i in ${CONFIG} template/config/config.ldif ; do
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis Papp#add a config.ldif.${VERSION_NO} file to the upgrade
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis Papp#directory for easy upgrading from Pre-OPENDJ2.4.5 versions
5fa3e419a5008528550756b7eb0ed31ab5d06b8cTravis PappVERSION_NO=`ls ${CONFIG_UPGRADE_DIR} | sed s/"[a-z/.]*//"`