]> git.sur5r.net Git - openldap/blob - tests/scripts/conf.sh
bb20b9cd1f4dfcaa8063866ad1ff2aef14c27184
[openldap] / tests / scripts / conf.sh
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2004 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15 if [ x"$MONITORDB" = x"yes" -o x"$MONITORDB" = xmod ] ; then
16         MON=monitor
17         if [ $MONITORDB = mod ] ; then
18                 MONMOD=monitormod
19         else
20                 MONMOD=nomod
21         fi
22 else
23         MON=nomonitor
24 fi
25 sed -e "s/@BACKEND@/${BACKEND}/"                        \
26         -e "s/^#${BACKEND}#//"                          \
27         -e "s/^#${BACKENDTYPE}#//"                      \
28         -e "s/^#${AC_ldap}#//"                          \
29         -e "s/^#${AC_pcache}#//"                        \
30         -e "s/^#${AC_ppolicy}#//"                       \
31         -e "s/^#${AC_refint}#//"                        \
32         -e "s/^#${AC_unique}#//"                        \
33         -e "s/^#${MON}#//"                              \
34         -e "s/^#${MONMOD}#//"                           \
35         -e "s/@CACHETTL@/${CACHETTL}/"                  \
36         -e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/"